Search found 2 matches

by jbmfg
Tue Jun 30, 2020 10:57 pm
Forum: Programs, Libraries and Tools
Topic: umqttsimple hangs when waking from deepsleep
Replies: 2
Views: 205

Re: umqttsimple hangs when waking from deepsleep

Good suggestions Christian, thank you. I should have mentioned that the code i posted in my op was in main.py. I moved it all to boot.py to see if that would help and it seems to have. I also added a 5 second wait after the client.connect() which seems to have made it pretty stable. I'm not totally ...
by jbmfg
Tue Jun 30, 2020 7:24 pm
Forum: Programs, Libraries and Tools
Topic: umqttsimple hangs when waking from deepsleep
Replies: 2
Views: 205

umqttsimple hangs when waking from deepsleep

I am using deepsleep to save battery between temperature reads that i post to a mqtt server. When the wake up occurs and the program does the client.connect() it hangs there. I narrowed down the issue to the umqttsimple line: resp = self.sock.read(4) The code works fine if i remove the deepsleep cod...