WiFiFlutter icon indicating copy to clipboard operation
WiFiFlutter copied to clipboard

Connect Succeeds With Incorrect Password, Sometimes Fails With Correct Password When Connecting to Already Connected WiFi

Open seikosantana opened this issue 3 years ago • 4 comments

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

seikosantana avatar Jun 08 '22 00:06 seikosantana

Is this happening with older Android versions? In that case encourage you to go through this PR - #277

daadu avatar Jun 08 '22 07:06 daadu

I was testing on Android 10, and I'm using the package version wifi_iot: ^0.3.15+3.

seikosantana avatar Jun 08 '22 09:06 seikosantana

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 :/

Tom3652 avatar Jun 26 '22 10:06 Tom3652

Tengo el mismo problema en Android 11. Estoy usando:wifi_iot: ^0.3.16

bool 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.

newGeneracion avatar Oct 30 '22 20:10 newGeneracion