Doesn't wake up after DeepSleep
Posted: 07 Oct 2019, 01:09
Hi ESP friends,
I am working with a ultrasonic sensor ('detector' device in code) to check when an object is close to it.
I got a NodeMCU v3 (ESP 8266 12-E) and flashed into it. GPIO16 (D0) is connected to RST
Set the wifi settings, MQTT... and the code, like this:
It seems to work fine until deepsleep. It goes to deep sleep but never wakes up.
What am I doing wrong? Can anybody see the solution?
I hope you guys can give me a hand on this before I drive completely crazy.
Regards
I am working with a ultrasonic sensor ('detector' device in code) to check when an object is close to it.
I got a NodeMCU v3 (ESP 8266 12-E) and flashed into it. GPIO16 (D0) is connected to RST
Set the wifi settings, MQTT... and the code, like this:
Code: Select all
On detector#Distance>0.0 do
Publish,home/front/mailbox,1
deepsleep,300
endon
On detector#Distance=0.0 do
Publish,home/front/mailbox,0
deepsleep,300
endon
What am I doing wrong? Can anybody see the solution?
I hope you guys can give me a hand on this before I drive completely crazy.
Regards