Skip to content

Commit 12df9f2

Browse files
committed
review of typos a and small errors in some examples
1 parent c313b54 commit 12df9f2

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

Diff for: libraries/Ethernet/examples/CosmClient/CosmClient.ino

+5-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,11 @@ EthernetClient client;
4949
//IPAddress server(216,52,233,121); // numeric IP for api.cosm.com
5050
char server[] = "api.cosm.com"; // name address for cosm API
5151

52-
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
53-
boolean lastConnected = false; // state of the connection last time through the main loop
54-
const unsigned long postingInterval = 10*1000; //delay between updates to cosm.com
52+
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
53+
boolean lastConnected = false; // state of the connection last time through the main loop
54+
const unsigned long postingInterval = 10L*1000L; // delay between updates to cosm.com
55+
// the "L" is needed to use long type numbers
56+
5557

5658
void setup() {
5759
// start serial port:

Diff for: libraries/Ethernet/examples/CosmClientString/CosmClientString.ino

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ EthernetClient client;
5151
//IPAddress server(216,52,233,121); // numeric IP for api.cosm.com
5252
char server[] = "api.cosm.com"; // name address for Cosm API
5353

54-
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
55-
boolean lastConnected = false; // state of the connection last time through the main loop
56-
const unsigned long postingInterval = 10*1000; //delay between updates to Cosm.com
57-
54+
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
55+
boolean lastConnected = false; // state of the connection last time through the main loop
56+
const unsigned long postingInterval = 10L*1000L; // delay between updates to Cosm.com
57+
// the "L" is needed to use long type numbers
5858
void setup() {
5959
// start serial port:
6060
Serial.begin(9600);

Diff for: libraries/Ethernet/examples/WebClientRepeating/WebClientRepeating.ino

+4-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ EthernetClient client;
3939

4040
char server[] = "www.arduino.cc";
4141

42-
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
43-
boolean lastConnected = false; // state of the connection last time through the main loop
44-
const unsigned long postingInterval = 60*1000; // delay between updates, in milliseconds
42+
unsigned long lastConnectionTime = 0; // last time you connected to the server, in milliseconds
43+
boolean lastConnected = false; // state of the connection last time through the main loop
44+
const unsigned long postingInterval = 60L*1000L; // delay between updates, in milliseconds
45+
// the "L" is needed to use long type numbers
4546

4647
void setup() {
4748
// start serial port:

0 commit comments

Comments
 (0)