You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: