-->
Page 1 of 1

nodemcu dht timeout after boot from deep sleep

PostPosted: Mon Oct 31, 2016 1:02 pm
by LuRhe
Hi,
I need to use dht library and deep sleep to save power. It seam's that after a deep sleep reboot a following dht.read with AM2303 (DHT22) doesn't work - it returns everytime a timeout.
After poweron boot or software reset it works fine. Googling show's users with similiar problems. I found no solution - have tried to set the pin for dht to different states before going to deep sleep. Nothing was successful.
As workaround the first thing after init.lua now I check the boot reason: if it comes from deep sleep I make a additional node.restart() and it works for me. Can anybody check the lib or explain behavior of pin after soft reset instead of deep sleep reset?
(I've used master and devel firmware build at Oct 30)
Thanks, Lutz