Page 1 of 1
Connect to WiFi
Posted: 30 Mar 2015 19:00
by Nerey
Hi
I'm looking for a way to connect a WiFi
I found action Enable WiFi Access point, but it works only if I check Disable other access points. Is there other way?
Re: Connect to WiFi
Posted: 05 Apr 2015 08:58
by Nerey
Noone knows?
Re: Connect to WiFi
Posted: 06 Apr 2015 06:56
by Martin
Hi,
Action Enable WiFi Access Point with Disable other access points is usually the way to go when the access point is already configured in the list of WiFi networks. When you want to switch between multiple active networks, you could also try to disable WiFi, sleep some seconds and then enable WiFi again. You could also try to use action Set WiFi Access Point Priority to give the device a hint to the more important network when multiple networks are available.
Most Android ROMs don't provide a user interface to change the WiFi priority and the function used to change the WiFi priority is poorly documented so I would not be surprised if the action does not work on some devices.
Regards,
Martin
Re: Connect to WiFi
Posted: 06 Apr 2015 07:03
by Nerey
Action Set WiFi Access Point Priority don't causes disconnect from current WiFi
Action Enable WiFi Access Point with Disable other access points is not a good way because all the access points are disabled :-\
Or than I should enable it all? Is there action to do that?
Re: Connect to WiFi
Posted: 06 Apr 2015 07:14
by Martin
Yes, you would have to turn WiFi off and on again to let Android reconnect to a new WiFi network.
You can use the same action to enable the other access points after a few seconds (with option Disable other access points not active). Newer versions of Android seem to do this automatically, on older Android versions or ROMs that don't do this, you would have to add an enable-action for each configured wifi network.
Re: Connect to WiFi
Posted: 06 Apr 2015 07:21
by Nerey
Martin wrote:add an enable-action for each configured wifi network.
Does not look very cool
Re: Connect to WiFi
Posted: 06 Apr 2015 07:56
by Martin
I could add pattern matching to make the action more comfortable for this case but for now you either have to add an action for each network or use a variable and loop over all configured access points.
Re: Connect to WiFi
Posted: 06 Apr 2015 08:00
by Nerey
I think pattern is a good solution
Thank you
Re: Connect to WiFi
Posted: 06 Apr 2015 08:21
by Martin
Pattern matching should become available in the next EAP version.