The CPU of 86Duino boards contain a built-in 10/100Mbps LAN interface, which can be accessed via the Ethernet library. The Arduino Ethernet Shield isn’t needed on 86Duino. This library can serve as either a server accepting incoming connections or a client making outgoing ones. In 86Duino Coding 101, the library supports up to four concurrent connection (incoming or outgoing or a combination); and in later versions, up to 128 concurrent connection.
The Ethernet class initializes the Ethernet library and network settings.
The IPAddress class works with local and remote IP addressing.
The Server class creates servers which can send data to and receive data from connected clients (programs running on other computers or devices).
The client class creates clients that can connect to servers and send and receive data.
The EthernetUDP class enables UDP message to be sent and received.
The following are examples of the Ethernet library from the Arduino Tutorial that can work on the 86Duino boards (note that on 86Duino, you don’t need the Arduino Ethernet Shield shown in these examples):
－ ChatServer: set up a simple chat server.
－ WebClient: make a HTTP request.
－ WebClientRepeating: Make repeated HTTP requests.
－ WebServer: host a simple HTML page that displays analog sensor values.
－ XivelyClient: connect to Xively.com, a free datalogging site.
－ XivelyClientString: send strings to Xively.com.
－ BarometricPressureWebServer: outputs the values from a barometric pressure sensor as a web page.
－ UDPSendReceiveString: Send and receive text strings via UDP.
－ UdpNtpClient: Query a Network Time Protocol (NTP) server using UDP.
－ DnsWebClient: DNS and DHCP-based Web client.
－ DhcpChatServer: A simple DHCP Chat Server.
－ DhcpAddressPrinter: Get an IP address via DHCP and print it out.
－ TelnetClient: A simple Telnet client.
We employ the SwsSock library of Software Systems to implement the Ethernet library of 86Duino. If interested in directly using SwsSock in your 86Duino sketches, you may refer to the Web page of SwsSock for related information.
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.