WiFiFlutter icon indicating copy to clipboard operation
WiFiFlutter copied to clipboard

Getting Null value while retreving WiFi Name

Open Pritam0706 opened this issue 1 year ago • 1 comments

await WiFiForIoTPlugin.forceWifiUsage(true); final info = await NetworkInfo(); final wifiName = await info.getWifiIP();

when i try to use this it returns null value even if WiFi is connected to a network. In my application there is a part where user handels iot operation where the user needs to connect to network less wifi to open there assigned lockers, but when i try to print the wifiName variable it prints null.

Pritam0706 avatar Dec 13 '23 08:12 Pritam0706

I am assuming you are using network_info_plus to read the network name.

Strange. First thought is, might be compatibility issue with the package itself. I would suggest you use getSSID and getIP - see if still facing the same issue.

daadu avatar Dec 17 '23 06:12 daadu