Go Down

Topic: Bug in Twitter Client example (Read 652 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