PaesslerAG / maker-monday

Maker Monday related stuff
BSD 3-Clause "New" or "Revised" License
19 stars 6 forks source link

Add static IP, disconnect WiFi, limit while loop, wake-up adjust #4

Closed freddieleeman closed 4 years ago

freddieleeman commented 4 years ago

Using a static IP saves connection/execution time and battery use. Not disconnecting WiFi caused connection errors the second time. Possibly not a Firebeetle, but a router issue? While loops did not have a limit, causing the script to loop indefinitely when no WiFi or MQTT server could be found. When GPIO26 was triggered, GPIO26 does not have to be armed. Checking the mailbox when no mail arrived would cause unnecessary wake-ups.

McSlow commented 4 years ago

that makes sense. Thanks for the Pull.