Android Question problem with MLwifi library

sirjo66

Well-Known Member
Licensed User
Longtime User
Hello,
I am a little problem with MLwifi library
https://www.b4x.com/android/forum/threads/simple-wifi-library.38601/

Into a service module I need to test if the device is connect to a wifi and also get wifi name, but (some time) this code
B4X:
Dim ml As MLwifi
Log("SSID = " & ml.SSID)
Log("isWifiConnected = " & ml.isWifiConnected)

tell me that:
SSID = MyNetworkName
isWifiConnected = False


..... why ???
if it tell me that the device is not connect to a wifi, how can it tell me the wifi name ??
is there a bug in the library ??

Sergio
 

NJDude

Expert
Licensed User
Longtime User
if it tell me that the device is not connect to a wifi, how can it tell me the wifi name ??
That's the broadcasting names you are getting, it's just like when on your device you open "available wireless connections" and see a whole bunch of networks around you, are you connected to all of them?, no, you are just getting their names.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…