WiFiManager
WiFiManager copied to clipboard
How to Determine AP Credential Failure using autoConnect()?
I am using the autoConnect() function, but if the wrong WiFi credentials are entered there is no feedback while in AP mode. Only when the credentials are correct does the autoConnect() return true, or if there is a timeout, returns false.
Is there a way to detect that the credentials failed?
Thanks...
I am also interested to know if there's a good way to determine this.
you might be able to use
// get last connection result, includes autoconnect and wifisave
uint8_t getLastConxResult();
is there a callback we can use to check once an attempt to save the configuration has been made?
For success, we have setSaveConfigCallback
, but I can't see a corresponding callback for failure.
Edit: I also see that you can set setBreakAfterConfig
but it would be good to be able to get a callback on failure without aborting the autoConnect
Hmm could be handy let me see what works best
Any thoughts?