- Mon Jun 12, 2017 3:30 pm
#67051
Hi, I am developing an automatic irrigation system based on ESP8266 sensors. For this application it's not necessary to have very frequent measurements, one measurement per day would actually be fine, but the input parameter for deepSleep is uint32_t which only allows a maximum of 4,294 seconds of sleep, which is only a little more than an hour. Hourly measurements are ok, but the battery would last a lot longer if they were daily.
I have always wondered why the parameter was in microseconds anyway. Does anybody need a sleep interval less than a millisecond?
So, I'm lobbying for an alternate implementation of the function with the parameter in milliseconds, or even seconds. Either that or a uint64_t parameter that would allow for a bigger number. Anybody have any thoughts on this?