Tutorial.WebClientRepeating History

Hide minor edits - Show changes to output

April 23, 2012, at 07:07 PM by Scott Fitzgerald -
Changed line 36 from:
(:source http://arduino.cc/en/pub/code/0023/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.pde lang=arduino tabwidth=4:)
to:
(:source http://arduino.cc/en/pub/code/master/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino lang=arduino tabwidth=4:)
Deleted line 42:
April 23, 2012, at 07:05 PM by Scott Fitzgerald -
Added lines 1-43:
''Examples > Ethernet Library''

!!!Web Client Repeating

This example shows you how to make repeated HTTP requests using an Ethernet shield. This example uses DNS, by assigning the Ethernet client with a MAC address, IP address, and DNS address. It connects to [[http://www.arduino.cc/latest.txt]]. The conent of the page is viewable through your Arduino's serial window.

(: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, the 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/0023/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.pde lang=arduino tabwidth=4:)
(:divend:)


!!!See Also:
(:include EthernetSeeAlsoIncludes :)

Share