Ethernet2 Library

Description

This library allows an Arduino board to connect to the internet using the Arduino Ethernet Shield 2 and Arduino Leonardo Eth.It can be used either as a server accepting incoming connections or as a client making outgoing ones. The library supports up to four concurrent connection (incoming or outgoing or a combination). Arduino communicates with the shield using the SPI bus. This is on digital pins 11, 12, and 13 on the Uno and pins 50, 51, and 52 on the Mega. On both boards, pin 10 is used as SS. On the Mega, the hardware SS pin, 53, is not used to select the W5500, but it must be kept as an output or the SPI interface won't work.

Note

This library is used to work with the new Ethernet shield (version 2) and Leonardo Eth that uses a new Controller W5500.

Related Functions

Server class

The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).

IPAddress class

The IPAddress class works with local and remote IP addressing.

Server class

The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).

Client class

The client class creates clients that can connect to servers and send and receive data.

EthernetUDP class

The EthernetUDP class enables UDP message to be sent and received.


Based on the reference originally written by Arduino Community,  wiring.org.co and  arduino.cc