info:wiznet_to_pachube_communications
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
info:wiznet_to_pachube_communications [2011/01/29 13:50] – tomgee | info:wiznet_to_pachube_communications [2011/01/29 14:35] (current) – tomgee | ||
---|---|---|---|
Line 25: | Line 25: | ||
- | Using the Ethernet shield, | + | Using the Arduino |
+ | |||
+ | // include the Ethernet library | ||
+ | # | ||
+ | |||
+ | // assign a MAC address for the ethernet controller. | ||
+ | // fill in your address here: | ||
+ | byte mac[] = { | ||
+ | 0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0x01 }; | ||
+ | // assign an IP address for the controller: | ||
+ | byte ip[] = { | ||
+ | | ||
+ | // Assign the address of the server you want to connect to: | ||
+ | byte server[] = { | ||
+ | | ||
+ | |||
+ | // initialize the library instance: | ||
+ | | ||
+ | |||
+ | long lastConnectionTime = 0; // last time you connected to the server, in milliseconds | ||
+ | |
info/wiznet_to_pachube_communications.1296327042.txt.gz · Last modified: 2011/01/29 13:50 by tomgee