Go Down

Topic: Bug in Twitter Client example (Read 685 times) previous topic - next topic

SPY_6000

The twitter Client example are working once and don´t reconnect to download new tweet every minute.

This code need to be changed:
Code: [Select]
const int requestInterval = 60000;  // delay between requests

To this:
Code: [Select]
const unsigned int requestInterval = 60000;  // delay between requests

because a standard int can´t have a higher number then 32,767

PaulS

The variable really should be an unsigned long. Making the int unsigned only doubles its capacity, so 60000 is near the limit. Waiting 2 minutes then will overflow.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy