From f415edfc3bda64920c40f888bb2f0ef123f76bfc Mon Sep 17 00:00:00 2001 From: Tom Igoe Date: Fri, 2 Mar 2012 17:21:12 -0500 Subject: [PATCH] upated PachubeClientString to fix interval bug --- .../examples/PachubeClientString/PachubeClientString.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino b/libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino index 55dbbdbde..3e1b08c73 100644 --- a/libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino +++ b/libraries/Ethernet/examples/PachubeClientString/PachubeClientString.ino @@ -45,7 +45,7 @@ IPAddress ip(10,0,0,20); // initialize the library instance: EthernetClient client; -long lastConnectionTime = 0; // last time you connected to the server, in milliseconds +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 = 10000; //delay between updates to Pachube.com