User Tools

Site Tools


info:wiznet_to_pachube_communications

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
info:wiznet_to_pachube_communications [2011/01/29 14:04] tomgeeinfo:wiznet_to_pachube_communications [2011/01/29 14:35] (current) tomgee
Line 32: Line 32:
      // assign a MAC address for the ethernet controller.      // assign a MAC address for the ethernet controller.
      // fill in your address here:      // fill in your address here:
-026.byte mac[] = { +     byte mac[] = { 
-027.  0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0x01 }; +     0x00, 0xAA, 0xAA, 0xAA, 0xAA, 0x01 }; 
-028.// assign an IP address for the controller: +     // assign an IP address for the controller: 
-029.byte ip[] = { +     byte ip[] = { 
-030.  192,168,0,20 }; +       192,168,0,20 }; 
-031.// Assign the address of the server you want to connect to: +     // Assign the address of the server you want to connect to: 
-032.byte server[] = { +     byte server[] = { 
-033.  173,203,98,29 }; // pachube.com +       173,203,98,29 }; // pachube.com 
-034.  +      
-035.// initialize the library instance: +     // initialize the library instance: 
-036.Client client(server, 80); +     Client client(server, 80); 
-037.  +      
-038.long lastConnectionTime = 0;      // last time you connected to the server, in milliseconds +     long lastConnectionTime = 0;      // last time you connected to the server, in milliseconds 
-039.boolean lastConnected = false;    // state of the connection last time through the main loop+     boolean lastConnected = false;    // state of the connection last time through the main loop
info/wiznet_to_pachube_communications.1296327887.txt.gz · Last modified: 2011/01/29 14:04 by tomgee