-
Notifications
You must be signed in to change notification settings - Fork 169
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
Unable to connect with the IoT wifi endpoint #174
Comments
need to use |
Sorry, could you add some more context to that? I also use a webview to show the interface of the connected IoT device, so I am not really sure where to use this forceWifiUsage and when to disable it. |
|
My code was working normally, and then i just receive the log My code is like this: In the morning it was working normally. When calling the .connect, the cell phone's wifi was disabled and I tried to connect to the network I informed. @daadu I dont get the "forceWifiUsage" after i connect to the wifi network i have to call this method? |
@Mluan any clue in the logs? Why it is not connecting.
|
Hello, @daadu, first thanks for the great plugin. I think that you forgot to add the forceWifiUsage documentation in the dart-side like is described on java-side. WiFiFlutter/packages/wifi_iot/android/src/main/java/com/alternadom/wifiiot/WifiIotPlugin.java Lines 714 to 721 in ca0c285
Maybe this can solve the issues like #154 and #160. Do you agree? |
@lucaslannes I have added it in readme, for wifi_iot the docs are not at par. New plugins will have proper API docs. |
Calling But testing on Android less than 10 (in my case Android 8), there is no need to call |
@lucaslannes Android API (esp. for WiFi) is mess, so try to be as redundant as possible! |
Do we have any update on this issue? How can we use it. |
Any updates yet? |
Hi there,
I am developing the app strictly for Android 11 and want to connect to wifi through the app. It says and shows that it is connected to the wifi (when I go to the wifi settings it is said that wifi is connected through the app and there is an exclamation mark next to the wifi icon). When I try to send the simple get request to the IoT device I am connected to, it doesn’t work (although I can successfully send that same request when I connect manually to the wifi endpoint). I am not sure if there is something I am doing wrong about it or I understand the documentation incorrectly.
Here is the code snippet of the function that triggers the connection process:
Thank you for your response.
The text was updated successfully, but these errors were encountered: