Hello, I'm actually done in coding my project. Like 98% done. In order for me to say that I'm 100% done, I need to make my arduino post a status on Facebook every RANDOM (divisible of per hour) Time (say from the range of 30 minutes to 3 hours).
I am using Temboo API to make my Arduino Mega communicate with Facebook. I have attached here my codes.
You can see in my codes that I am generating a number from 1 to 10 to pick a random String from a set of Strings (array). And then post that on Facebook IF and ONLY IF the state or the level has changed. Again, this is already okay. Now, I have a variable named "oneTime". This is for the Arduino to initiate something to Temboo FOR ONLY 1 time, take note that the system will be forever online upon deployment ![]()
I am familiar with a certain module that is being used (shield) with Arduino boards for clock or time stuffs. But I can't afford to use that or to buy that for now. Is it possible to use just the milliseconds or whatever N-seconds function that the Arduino has? I'm seeking help because I'm not good really at the multitasking of Arduino.
Thanks!
G
FMSAM2015v2.ino (13.4 KB)