Skip to content
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

Getting Null value while retreving WiFi Name #361

Open
Pritam0706 opened this issue Dec 13, 2023 · 1 comment
Open

Getting Null value while retreving WiFi Name #361

Pritam0706 opened this issue Dec 13, 2023 · 1 comment

Comments

@Pritam0706
Copy link

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.

@daadu
Copy link
Member

daadu commented Dec 17, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants