-
Notifications
You must be signed in to change notification settings - Fork 182
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
Successfully connects to wifi, But it doesn't work with tcp sockets for sending and receiving data. #383
Comments
I have also the same problem. Although it only occurs for me on android 14. Other androids are working and iOS devices are also fine. Could you please share your device info? @karthiksensesemi |
My android version is 11. Now the above data transfer works. |
Are you forcing wifi usage , and if so. Are you also unforcing it before disconnecting? https://pub.dev/documentation/wifi_iot/latest/wifi_iot/WiFiForIoTPlugin/forceWifiUsage.html |
Thanks a ton. I fixed it. |
Glad to hear that. How did you resolve the socket problem? |
Actually,
Future connectWifi() async { readWriteWifi({String? req}) async { |
I think I need to test with android 14 as well. And will come back with update. |
I've got it working as well. The problem was that on some androids you have to force wifi before pinging the device. iOS doesn't require that. |
I'm using this package for auto-connect to iot device. It gets connected successfully but when i wanted to receive data through tcp socket "SocketException: Connection failed (OS Error: Network is unreachable, errno = 101), address = 192.168.1.1, port = 5002".
I face the above error whereas when i manually to wifi, i receive all the data through sockets.
The text was updated successfully, but these errors were encountered: