Skip to content
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

WiFiForIotPlugin.connect doesn't work (timeout), still returns true with useInternet: true #400

Open
Tobi696 opened this issue Sep 8, 2024 · 0 comments

Comments

@Tobi696
Copy link

Tobi696 commented Sep 8, 2024

I have this code:

var x = await WiFiForIoTPlugin.disconnect();
      print(x);
      caberQUConnected.value = await WiFiForIoTPlugin.connect(
        'BLE caberQU update',
        password: firmwareUpdateProvider.deviceUid,
        security: NetworkSecurity.WPA,
        timeoutInSeconds: 120,
      );
      x = await WiFiForIoTPlugin.forceWifiUsage(true);
      print(x);
      if (!caberQUConnected.value) {
        Fluttertoast.showToast(msg: "Failed to connect to caberQU device.");
        currentStep.value--;
  }

Which runs into the 120 second timeout.
When I set the parameter useInternet to true, the method returns true, but my device still stays connected to the old network. I am trying to connect to an IOT Device which has no internet access.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant