WiFiFlutter
WiFiFlutter copied to clipboard
removeWifiNetwork not work
I use await WiFiForIoTPlugin.removeWifiNetwork(ssid);
but there is no any action. I want to use it to forget the network that connected, Am I use the right function as await WiFiForIoTPlugin.removeWifiNetwork(ssid);
?
What version are you testing on? The behaviour is different based on it.
the latest version wifi_iot: ^0.3.4
Sorry, was asking about Android version.
Android 7.0
This should be working for Android SDK 24, can you share any logs?
Same for me, I test from android 11, after call registerWifiNetwork work then call removeWifiNetwork but nothing change, and no log, the func removeWifiNetwork return true. I use the latest version 0.3.15
I have the same problem, I can't disconnect using registerWifiNetwork after connecting. The removeWifiNetwork return true Android 7.0, wifi_iot 0.3.18. Pasting this await _channel.invokeMethod('disconnect'); into a file wifi_iot.dart(line 598) helped me. Tested Android 11