WiFiFlutter icon indicating copy to clipboard operation
WiFiFlutter copied to clipboard

When using the plugin the network is inaccessible, IP/gateway does not work

Open lfvicent3 opened this issue 4 years ago • 1 comments

Hi! I am using this plugin to automatically connect to the network of an ESP32 device. When I connect to the network directly through the plugin the IP/gateway does not work, making the ESP32 administrative page inaccessible, the same problem was observed when connecting to my home network (making the network without internet, even by having). On the other hand, when connecting through the device settings, the IP/gateway works normally and I can access the network's administrative page.

I've tried forceNetwork methods and nothing has changed.

I'm using android 11 - level 30.

Can someone help me fix this problem?

lfvicent3 avatar Oct 09 '21 23:10 lfvicent3

after connecting when you want to make network requests, use forceWifiUsage(true). This will make sure that the call is made through the connected network. And when you want to use "main" network (mobile or wifi - with internet) disable it.

daadu avatar Oct 11 '21 06:10 daadu