WiFiFlutter
WiFiFlutter copied to clipboard
Getting Null value while retreving WiFi Name
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.
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.