I have two data bases that contain temperature data from an arduino...
I want to send the data to these data bases for a minute, then after of send the data in the another data base, send it to the next data base (LATER OF TEN TIMES OF THE FIRST DATA BASE)
My code below:
int count = 0;
for(int a = 1; a <= 10; a++) {
Cayenne.run();
delay(60000);
count = count + 1;
}
if(count== 10) {
ToPostWStemp();
count = 0;
}
But doesn't send anything, and I don't know how to do. Many people said me that it's much better use millis() function, but I don't know how code that function on my Arduino.
D.P. The function "Cayenne.run" calls the first function of server, then the "ToPostWStemp" calls the second last server function.
Thank you!