ESPEasy deep sleep and MQTT
Posted: 31 Jan 2020, 22:06
Hi everyone, new here.
I have a few NodeMCU compatible ESP8266 boards with a BME280 sensor on them, and a 100k resistor between A0 and battery +. Trying to run these on battery power as long as possible so I have it using deep sleep for 900 seconds, the sleep wake time is set to 10 seconds. The problem I am having is that the board goes to sleep fine and wakes fine, however it doesn't always push it's values to my MQTT broker on each wake cycle.
The weirdest part is that some wake cycles it will send the temp and humidity but not battery level, or vice versa. I don't understand why it wouldn't wake and write its values, especially since I can always get it to right new values every time I press the reset button manually.
Anyone here real good at these sleep wake cycles that knows what could be the reason? Should I set my interval on my devices to less than 10 seconds so I always get a scan in the wake timer window?
I have a few NodeMCU compatible ESP8266 boards with a BME280 sensor on them, and a 100k resistor between A0 and battery +. Trying to run these on battery power as long as possible so I have it using deep sleep for 900 seconds, the sleep wake time is set to 10 seconds. The problem I am having is that the board goes to sleep fine and wakes fine, however it doesn't always push it's values to my MQTT broker on each wake cycle.
The weirdest part is that some wake cycles it will send the temp and humidity but not battery level, or vice versa. I don't understand why it wouldn't wake and write its values, especially since I can always get it to right new values every time I press the reset button manually.
Anyone here real good at these sleep wake cycles that knows what could be the reason? Should I set my interval on my devices to less than 10 seconds so I always get a scan in the wake timer window?