Adjusted interval bug in TwitterClient

This commit is contained in:
Tom Igoe 2012-03-02 17:20:09 -05:00
parent 59f68ebd8c
commit 8ef8be6ccd
1 changed files with 8 additions and 8 deletions

View File

@ -17,7 +17,6 @@
* Ethernet shield attached to pins 10, 11, 12, 13
created 21 May 2011
updates 2 Mar 2012
by Tom Igoe
This code is in the public domain.
@ -30,7 +29,7 @@
// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
0xDE,0xAD,0xBE,0xEF,0xFE,0xED };
0x00, 0xAA, 0xBB, 0xCC, 0xDE, 0x01 };
IPAddress ip(192,168,1,20);
// initialize the library instance:
@ -57,12 +56,12 @@ void setup() {
// attempt a DHCP connection:
Serial.println("Attempting to get an IP address using DHCP:");
if (!Ethernet.begin(mac)) {
Serial.println("failed to get an IP address using DHCP, trying manually");
// if DHCP fails, start with a hard-coded address:
Serial.println("failed to get an IP address using DHCP, trying manually");
Ethernet.begin(mac, ip);
}
Serial.print("My IP address:");
Serial.println(ip);
Serial.print("My address:");
Serial.println(Ethernet.localIP());
// connect to Twitter:
connectToServer();
}
@ -127,3 +126,4 @@ void connectToServer() {
// note the time of this connect attempt:
lastAttemptTime = millis();
}