July 4, 2019
Good morning everyone. I am using an ESP8266 to measure wind speed in my region, this project is part of a program of the university that I study. My system accumulates the speed values for one minute and then sends them to thingspeak. I want to send only 1 die at the end of this minute and I can not do that.
I do not use deleys, I use a millis function to control the time which will be averaged.
How can I do so that the calculated average is sent only at the end of this minute.
March 7, 2017
Are you programming your ESP with the Arduino IDE?
I'm not sure exactly what you are trying to do. If you have the millis() function, you can time events. But just in case you are trying to synchronize with a specific time, I offer the following solution:
There is a time library available (google). Each time you post to ThingSpeak, ThingSpeak will return the created at timestamp, and you can parse that and use it to set the clock on your Arduino. (or use it to re-synchronize the time after every post. ) Then use a loop to check the time, and if the seconds=59, then post.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:ssh47k, aaceitunog01, AlinaCutle, MARTO, simplicity1, jango6954
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457