Android Question Can't connect to hidden WiFi network

elektor18

Member
Licensed User
Hi All,

At the moment I'm writing a part of code which should connect android device with hidden network (disconnect existing connection and connect to that hidden one) but it doesn't do that and I don't know why.

B4X:
Dim wifi1 As MLwifi

   
wifi1.saveWifiAP("MyHiddenWiFi",0,"",True)

So this command should add network to list (and it does) but for some reason doesn't want to connect to it.
 

kisoft

Well-Known Member
Licensed User
Longtime User
Android may not want to connect to a network that does not have internet access. I do not know if you can somehow force him to connect to such a network.
Wait for the opinion of other forum members.
 
Upvote 0

MarkusR

Well-Known Member
Licensed User
Longtime User
B4X:
wifi1.saveWifiAP("MyHiddenWiFi",0,"",True)
saveWifiAP(String ssid, int security, String password, boolean connect) As Boolean
it should return a boolean true.
or maybe its because u not using security and password.
i never used this MLwifi lib.
 
Upvote 0

jimmyF

Active Member
Licensed User
Longtime User
If this is a hidden SSID, have you previously saved it to your list of wifi networks?

It may only work if the entry already exists in the list.
 
Upvote 0

elektor18

Member
Licensed User
No it doesn't want connect anyway, I tried hidden - open, hidden - secured, not hidden - open, not hidden - secured and no luck. In saved network list it is mentioned that this network is saved by my application but that shouldn't effect to this issue, should it? Just to remind, this network hasn't got internet access.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Upvote 0

elektor18

Member
Licensed User
I'm using arduino IDE to programming ESP chip so this is ok. How to detect if android device is connected to proper/demand ssid network and wait until that connection is established (eg. few tries to connect, if no success then give up)?
 
Upvote 0
Top