diff options
author | Cristian Maglie <c.maglie@bug.st> | 2012-10-18 20:31:51 +0200 |
---|---|---|
committer | Cristian Maglie <c.maglie@bug.st> | 2012-10-18 20:31:51 +0200 |
commit | 46d658fac872f7aa8856c792b1744b74f2d9946d (patch) | |
tree | b9f4e5857c706c3f9f848018155cd15acd8eeafb /libraries/Ethernet/examples/CosmClient/CosmClient.ino | |
parent | 037020e938f7dde469f828764976635a69b74a3e (diff) | |
parent | 12df9f2c839e81cad2cf9797cc932518e5383c7d (diff) |
Merge remote-tracking branch 'origin/master' into merge-1.0.1
Diffstat (limited to 'libraries/Ethernet/examples/CosmClient/CosmClient.ino')
-rw-r--r-- | libraries/Ethernet/examples/CosmClient/CosmClient.ino | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libraries/Ethernet/examples/CosmClient/CosmClient.ino b/libraries/Ethernet/examples/CosmClient/CosmClient.ino index 22815af..ec74278 100644 --- a/libraries/Ethernet/examples/CosmClient/CosmClient.ino +++ b/libraries/Ethernet/examples/CosmClient/CosmClient.ino @@ -49,9 +49,11 @@ EthernetClient client; //IPAddress server(216,52,233,121); // numeric IP for api.cosm.com char server[] = "api.cosm.com"; // name address for cosm API -unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds -boolean lastConnected = false; // state of the connection last time through the main loop -const unsigned long postingInterval = 10*1000; //delay between updates to cosm.com +unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds +boolean lastConnected = false; // state of the connection last time through the main loop +const unsigned long postingInterval = 10L*1000L; // delay between updates to cosm.com + // the "L" is needed to use long type numbers + void setup() { // start serial port: |