Show minor edits - Show changes to markup
(:source http://github.com/arduino/Arduino/raw/0023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/0023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:source http://github.com/arduino/Arduino/raw/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
In this example, you will use your Ethernet Shield and your Arduino to send and receive text strings via the UDP protocol (Universal Datagram Packet).
In this example, you will use your Ethernet Shield and your Arduino to send and receive text strings via the UDP protocol (Universal Datagram Packet). You'll need another device to send to and from. The Processing sketch included at the end of the code will send to and receive from your Arduino running this example.
Copy the Processing sketch from the code sample above. When you type any letter in the Processing sketch window, it will send a string to the Arduino via UDP.
(:include EthernetSeeAlsoIncludes :)
Examples > Ethernet Library
In this example, you will use your Ethernet Shield and your Arduino to send and receive text strings via the UDP protocol (Universal Datagram Packet).
(:div class=BOM :)
(:divend:)
(:div class=circuit :)
The Ethernet shield allows you to connect a WizNet Ethernet controller to the Arduino via the SPI bus. It uses pins 10, 11, 12, and 13 for the SPI connection to the WizNet. Later models of the Ethernet shield also have an SD Card on board. Digital pin 4 is used to control the slave select pin on the SD card.
The shield should be connected to a network with an ethernet cable. You will need to change the network settings in the program to correspond to your network.
image developed using Fritzing. For more circuit examples, see the Fritzing project page
In the above image, your Arduino would be stacked below the Ethernet shield.
(:divend:)
(:div class=circuit :)
(:divend:)
(:div class=code :) (:source http://github.com/arduino/Arduino/raw/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:) (:divend:)