Tutorial.UDPSendReceiveString History

Hide minor edits - Show changes to output

November 28, 2011, at 04:28 PM by Scott Fitzgerald -
Changed line 39 from:
(:source http://arduino.cc/en/pub/code/0023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
November 16, 2011, at 05:16 AM by Scott Fitzgerald -
Changed line 39 from:
(:source http://arduino.cc/en/pub/code/023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/0023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
November 16, 2011, at 05:12 AM by Scott Fitzgerald -
Changed line 39 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/023/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
November 16, 2011, at 04:29 AM by Scott Fitzgerald -
Changed line 39 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
September 21, 2010, at 06:55 PM by Tom Igoe -
Changed lines 5-6 from:
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).
to:
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 [[http://www.processing.org |Processing]] sketch included at the end of the code will send to and receive from your Arduino running this example.
Changed lines 42-44 from:
to:
!!! Processing Code
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.
September 17, 2010, at 04:37 PM by Tom Igoe -
September 17, 2010, at 04:37 PM by Tom Igoe -
Changed lines 44-53 from:
* [[Main/ArduinoEthernetShield | Arduino Ethernet Shield]]
* [[Guide/ArduinoEthernetShield | Getting started with the ethernet shield]]
* [[Reference/Ethernet | Ethernet library]]
* [[ChatServer]]
* [[WebClient]]
* [[WebServer]]
* [[PachubeCient]]
* [[BarometricPressureWebServer]]
* [[UDPSendReceiveString]]
* [[UdpNtpClient]]
to:
(:include EthernetSeeAlsoIncludes :)
September 17, 2010, at 04:31 PM by Tom Igoe -
Changed lines 51-52 from:

*[[BarometricPressureWebServer]]
to:
* [[BarometricPressureWebServer]]
* [[UDPSendReceiveString]]
* [[UdpNtpClient]]
September 17, 2010, at 04:30 PM by Tom Igoe -
Added lines 1-52:
''Examples > Ethernet Library''

!!!Sending and Receiving String via UDP

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 :)
!!!Hardware Required
* Arduino Ethernet Shield
* Shield-compatible Arduino board

(:divend:)

!!!Circuit
(: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.



%height=300px%[[Attach:EthernetShield_bb.png | Attach:EthernetShield_bb.png]]

[-image developed using [[http://www.fritzing.org |Fritzing]]. For more circuit examples, see the [[http://fritzing.org/projects/|Fritzing project page]] -]

'''''In the above image, your Arduino would be stacked below the Ethernet shield.'''''

(:divend:)

!!!Schematic
(:div class=circuit :)
%height=300px%[[Attach:EthernetShield_sch.png | Attach:EthernetShield_sch.png]]
(:divend:)

!!!Code

(:div class=code :)
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.pde lang=arduino tabwidth=4:)
(:divend:)


!!!See Also:
* [[Main/ArduinoEthernetShield | Arduino Ethernet Shield]]
* [[Guide/ArduinoEthernetShield | Getting started with the ethernet shield]]
* [[Reference/Ethernet | Ethernet library]]
* [[ChatServer]]
* [[WebClient]]
* [[WebServer]]
* [[PachubeCient]]

*[[BarometricPressureWebServer]]

Share