![]() Immediately after running the program the first measurement is sent, however, the second (which should be sent after 30 min), is sent only after 1 hour. The way millis is able to track the number of milliseconds that have passed is by using the timer counter module that is built into the integrated circuit on. Simple non-blocking timer library for calling functions in / at / every specified units of time. I have a program which measures temperatures every 30 minutes and sends them to a database. When we come down to 0 and the alarm goes off, the state variable is also equal to 1. Timer library for delaying function calls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |