aboutsummaryrefslogtreecommitdiff
path: root/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino')
-rw-r--r--libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino7
1 files changed, 4 insertions, 3 deletions
diff --git a/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino b/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino
index e0f06c4..650f74e 100644
--- a/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino
+++ b/libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino
@@ -39,9 +39,10 @@ EthernetClient client;
char server[] = "www.arduino.cc";
-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 = 60*1000; // delay between updates, 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 = 60L*1000L; // delay between updates, in milliseconds
+ // the "L" is needed to use long type numbers
void setup() {
// start serial port: