CoogleIOT
CoogleIOT copied to clipboard
configuration when wifi config is invalid
if you setup a node with a mistake in the SSID or password,
the node will repeatedly attempt to connect (10 times) - then it will reset and do this again.
however during that process, there is no loop for the dns or web server, so it is impossible to re-configure the node to be able to use the correct credentials (save for wiping it and starting again).
Thanks for letting me know, please feel free to either submit a PR to fix the issue or I will try to find some time to correct it myself (but you'll have to be patient with me!)
Same issue when connection to the MQTT server cannot be established. Simply deleting the restartDevice() within CoogleIOT.cpp loop function where the failure conditions are being checked (wifiFailuresCount & mqqtFailuresCount) fix that issue but I am not familiar enough with the code to see if doing that might not create some unwanted side effect. Quick and dirty fix but probably something better could be created??? With those 2 restartDevice() code line removed; the device could still be restarted using the web interface which is available even without a connection to the router or mqtt server.