Tutorial.UDPSendReceiveString History

Hide minor edits - Show changes to output

August 13, 2015, at 01:52 PM by Simone Maiocchi -
Changed lines 1-4 from:
''Examples > Ethernet Library''

!!!Sending and Receiving String via UDP
to:
(:div class=breadcrumb:)
[[Tutorial.HomePage | Tutorials]] > [[Tutorial.Examples | Examples]] > Ethernet > UDPSendReceiveString
(:divend:)

(:*toc:)

!!Sending and Receiving String via UDP
Changed lines 13-15 from:
* Arduino Ethernet Shield
* Shield-compatible Arduino board
to:
* Arduino or Genuino Board
* [[Main/ArduinoEthernetShield | Arduino Ethernet Shield]]
Changed lines 21-28 from:
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]]
to:
The Ethernet shield allows you to connect a WizNet Ethernet controller to the Arduino or Genuino boards 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:EthernetShieldF_bb.png]]
Changed lines 29-30 from:
'''''In the above image, your Arduino would be stacked below the Ethernet shield.'''''
to:
'''''In the above image, the Arduino or Genuino board would be stacked below the Ethernet shield.'''''
Added line 33:
Changed line 42 from:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
to:
(:source https://raw.githubusercontent.com/arduino/Arduino/master/libraries/Ethernet/examples/UDPSendReceiveString/UDPSendReceiveString.ino lang=arduino tabwidth=4:)
Changed lines 48-49 from:
!!!See Also:
(:include EthernetSeeAlsoIncludes :)
to:
!!!See also
* [[Main/ArduinoEthernetShield | Arduino Ethernet Shield]] – Product description.
* [[Guide/ArduinoEthernetShield | Getting started with the Ethernet Shield]] – Get everything set up in minutes.
* [[Reference/Ethernet | Ethernet library]] – Your reference for the Ethernet Library.
* [[ChatServer]] - A simple server that distributes any incoming messages to all connected clients.
* [[WebClient]] – Query the web and get the answer through the serial monitor
* [[WebClientRepeating ]] - How to make repeated HTTP requests using the Ethernet shield.
* [[WebServer]] - A simple web server that shows the value of the analog input.
* [[DhcpAddressPrinter]] – Get a DHCP address and print it on serial monitor.
* [[DhcpChatServer]] – Connect to a Telnet server and print on serial monitor all the received messages; uses DHCP.
* [[TelnetClient]] - Connect to a Telnet server and print on serial monitor all the received messages
* [[BarometricPressureWebServer]] – Post data read from a pressure sensor using SPI.
* [[UdpNtpClient]] - query a Network Time Protocol (NTP) server and get the information through serial monitor.
\\
''Last revision 2015/08/13 by SM''
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