WiFiManager
WiFiManager copied to clipboard
Only reconnect if WiFi updated
If only the parameters have been updated then don't try to reconnect on save. Otherwise _ssid
and _pass
are blank (because "placeholder" input attribute is used) and the connection will fail.
still a problem in the latest code
What browser? placeholders should not be submitted in inputs
Yes, exactly, the placeholder is not submitted, and therefore WiFiManager uses the returned (blank) SSID and password to reconnect. This causes the connection to fail.
My patch makes it so that if the SSID and password are not changed it will not try to reconnect with blank _ssid
and _pass
.
Tested with Chromium 110.0.5481.177
If its blank then it shouldnt be connecting at all
Is that the intended behavior? Every time that you go into the settings page you need to type in the ssid and password again, even if the placeholder is correct?
No, I will take a look, something else seems to be broken also