this is my code: Future connectToWifi(String ssid) async {
try {
var details = await WiFiForIoTPlugin.connect(ssid,
security: NetworkSecurity.NONE, joinOnce: true);
print('details are $details');
if (details) {
print('connected sucessfuly');
} else {
print('failed to connect');
}
} catch (e) {
print('fialed to connect $e');
}
}these are messages in debug console:D/ConnectivityManager(11147): NetworkCallback was already unregistered
I/flutter (11147): details are false
I/flutter (11147): failed to connect
this is my code: Future connectToWifi(String ssid) async {
try {
var details = await WiFiForIoTPlugin.connect(ssid,
security: NetworkSecurity.NONE, joinOnce: true);
print('details are $details');
if (details) {
print('connected sucessfuly');
} else {
print('failed to connect');
}
} catch (e) {
print('fialed to connect $e');
}
}these are messages in debug console:D/ConnectivityManager(11147): NetworkCallback was already unregistered
I/flutter (11147): details are false
I/flutter (11147): failed to connect