-
Notifications
You must be signed in to change notification settings - Fork 178
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to connect - NetworkCallback was already unregistered #387
Comments
import 'package:wifi_for_iot/wifi_for_iot.dart'; Future _connectToWifi(String ssid, String password) async { void main() { _connectToWifi(ssid, password); |
@RishuRanjan25 |
code: Future connectToWifi(String ssid, String password) async {
}. getting'details are false' in debug console |
here my code-
-------------------------------------------------------------------------
ssid = 'CELIUMWIFI'
password = 'CELIUMPASS'
Future _connectToWifi(ssid, pass) async {
try {
var detail = await WiFiForIoTPlugin.connect(ssid,
password: pass, security: NetworkSecurity.WPA);
print(detail);
} catch (e) {
print("Error connecting to WiFi: $e");
}
}
when i am try to connect with new ssid and password i am getting this type of error-
-------------------------------------------------------------------------
I/FA (31756): Application backgrounded at: timestamp_millis: 1714717238789
D/ConnectivityManager(31756): NetworkCallback was already unregistered
I/flutter (31756): false
The text was updated successfully, but these errors were encountered: