konnected-io / konnected-security

Konnected connects wired sensors and switches to SmartThings, Home Assistant, Hubitat and OpenHAB
https://konnected.io
Apache License 2.0
416 stars 322 forks source link

improve wifi disconnect logic #36

Closed heythisisnate closed 7 years ago

heythisisnate commented 7 years ago

Improves logic when wifi fails to connect immediately after boot:

  1. wait 60 seconds before falling back into wifi setup mode when wifi connection fails initially
  2. add 5 minute failsafe: reboot after 5 minutes in wifi setup mode if wifi is not configured

Also adding tests and some nodemcu test stubs.