Connect to WiFi

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Connect to WiFi

Post by Nerey » 30 Mar 2015 19:00

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?
Sorry for bad english, my native is russian.

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Connect to WiFi

Post by Nerey » 05 Apr 2015 08:58

Noone knows?
Sorry for bad english, my native is russian.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect to WiFi

Post by Martin » 06 Apr 2015 06:56

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

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Connect to WiFi

Post by Nerey » 06 Apr 2015 07:03

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?
Sorry for bad english, my native is russian.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect to WiFi

Post by Martin » 06 Apr 2015 07:14

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.

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Connect to WiFi

Post by Nerey » 06 Apr 2015 07:21

Martin wrote:add an enable-action for each configured wifi network.
Does not look very cool
Sorry for bad english, my native is russian.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect to WiFi

Post by Martin » 06 Apr 2015 07:56

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.

User avatar
Nerey
Posts: 102
Joined: 07 Mar 2014 16:59

Re: Connect to WiFi

Post by Nerey » 06 Apr 2015 08:00

I think pattern is a good solution
Thank you
Sorry for bad english, my native is russian.

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Connect to WiFi

Post by Martin » 06 Apr 2015 08:21

Pattern matching should become available in the next EAP version.

Post Reply