WiFiFlutter
WiFiFlutter copied to clipboard
Connect Succeeds With Incorrect Password, Sometimes Fails With Correct Password When Connecting to Already Connected WiFi
The title says it. I need to ask for ssid and password and then connect to the network, but if the selected network is the current already connected network, it could sometimes fail, without changing passwords, on next try it succeeds.
It also could succeed even if the password was incorrect. I need to pass the password to IoT devices but this way it's not possible to detect if the password is incorrect.
Any way to check for the password? Thanks in advance
Is this happening with older Android versions? In that case encourage you to go through this PR - #277
I was testing on Android 10, and I'm using the package version wifi_iot: ^0.3.15+3.
I am having the same issue on Android 11.
I am using : wifi_iot: ^0.3.16
bool connected = await WiFiForIoTPlugin.connect(ssid, password: password, security: NetworkSecurity.WPA, withInternet: true);
Always returns true despite the password is wrong :/
Tengo el mismo problema en Android 11. Estoy usando:
wifi_iot: ^0.3.16bool connected = await WiFiForIoTPlugin.connect(ssid, password: password, security: NetworkSecurity.WPA, withInternet: true);Siempre devuelve verdadero aunque la contraseña sea incorrecta :/
Any solution, I have the same problem. :(,
Additionally, if I disconnect from the current network, and make a request to an external server, it doesn't work!! I have to close the app.