Go Down

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


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


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.
The art of getting good answers lies in asking good questions.

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!

via Egeo 16
Torino, 10131