Arduino-Pro-Mini-LoRa-Sensor-Node icon indicating copy to clipboard operation
Arduino-Pro-Mini-LoRa-Sensor-Node copied to clipboard

Empty values after deep sleep

Open guillebot opened this issue 1 year ago • 2 comments

Hi! I'm trying to use your project, since I'm finding it very nice and tidy. Congrats, and thank you.

It works mostly, but sometimes after deep sleep it just sends a empty payload and goes to sleep again.

Even with correct DHT measurements (I had to add a little delay there in order to give it time to turn on). Could be that?

I added 3 seconds split in 3 delay() calls.

Any hint would be very welcomed.

Thanks

guillebot avatar Jun 08 '23 16:06 guillebot

More info:

It seems like it just wake up and send the message, then goes to taking the measures and sleep again

PowerUp... 21326936: EV_TXSTART <----- sends empty packet Delay ...done! <--- my delay DHT: OK DHT Model: 2 27.80 % 27.40 °C A0: 166 Packet queued 21706732: EV_TXCOMPLETE . . PowerDown...

guillebot avatar Jun 08 '23 16:06 guillebot

This gets a lot worse with 8 seconds sleep, when I change the internal timer to 0.5 or 1.0 seconds it works almost allways.

guillebot avatar Jun 08 '23 16:06 guillebot