Maybe you could use a WIFI Near profile with your SSID. As soon as you get near enough to your AP you can toggle your WIFI. That should duplicate what you do manually.
What if you did it by signal strength?
Profile: WIFI Near (12)
State: Wifi Near [ SSID:* MAC:* Capabilities:* Min. Activate Signal Level:4 Channel:0 Toggle Wifi:Off ]
Enter: Anon (15)
A1: WiFi [ Set:On ]
Profile: Check Signal (39)
Event: Intent Received [ Action:android.net.wifi.RSSI_CHANGED Cat:None Cat:None Scheme:* Mime Type:* ]
Enter: Reset WIFI Near (78)
A1: If [ %newrssi < -80 ]
A2: Profile Status [ Name:WIFI Near Set:Off ]
A3: WiFi [ Set:Off ]
A4: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A5: Profile Status [ Name:WIFI Near Set:On ]
A6: End If
I should point out that in the Wifi Near profile you should put all of the ssids that you can connect to along your route.
Well the real key is the disabling and enabling of the Wifi Near profile. When the profile is re-enabled, it does an immediate scan. This way I avoid Tasker's normal 2-min wait between scans.
I meant that the profile *avoids* the two min wait. Sorry if I wasn't clear.
I use this profile at work. We have multiple AP and the signals vary as I move through the building. As I get too far away from one AP, the profile will switch to the next with about a 1 sec delay.
On May 1, 2015 11:01 AM, "technogeezer" <spider...@gmail.com> wrote:
> One other thing, you can change the wifi scan time in preferences->monitor.
Yes, but I only want the first scan done quickly. I don't want want it to be rapidly scanning when I am outside connection range. That just eats battery.
I could change the scan time for the first scan and then change it back, but it is just simpler to toggle the profile status.
On May 4, 2015 5:07 AM, "technogeezer" <spider...@gmail.com> wrote:
> Doesn't the code running as a result of the constantly changing RSSI also consume battery?
Anytime you are connected to an AP you are going to receive these intents, whether you react to them or not. I believe the extra drain from a tasker script to be insignificant.
>Also, the wifi toggle only occurs when the RSSI is less than -80. That means the old router must be near out of range before any new router can connect, doesn't it?
You probably have to adjust the numbers for your particular situation.
You could also try Wifi Manager
(http://goo.gl/ehkkR0), it also will scan for and switch to the strongest net. It may be better in this case.
> The problem then is, how do I connect to a particular wifi? (Looks like I'm off for more research.)
The only way I have found to do this is via Java as shown here: http://goo.gl/7yX4xU
(http://goo.gl/ehkkR0), it also will scan for and switch to the strongest net. It may be better in this case.
> The problem then is, how do I connect to a particular wifi? (Looks like I'm off for more research.)
The only way I have found to do this is via Java as shown here: http://goo.gl/7yX4xU
This is pure java. How can java be executed via Tasker? Sorry, I haven't looked into this. Do you know of a 'how to' page by any chance?
On May 4, 2015 8:22 AM, "technogeezer" <spider...@gmail.com> wrote:
>
> You could also try Wifi Manager
>>
>> (http://goo.gl/ehkkR0), it also will scan for and switch to the strongest net. It may be better in this case.
>
> This does not interface to Tasker but it does seem to allow a 'favored' wifi. Would changes made to wifi by this app propagate to Tasker's internals?
Yes, any change to the wifi connection would be seen by Tasker.
>> > The problem then is, how do I connect to a particular wifi? (Looks like I'm off for more research.)
>>
>> The only way I have found to do this is via Java as shown here: http://goo.gl/7yX4xU
>
> This is pure java. How can java be executed via Tasker? Sorry, I haven't looked into this. Do you know of a 'how to' page by any chance?
The only 'how to' that I know of that deals with Java + Tasker is in the User's Guide: http://goo.gl/AErqYI
The only 'how to' that I know of that deals with Java + Tasker is in the User's Guide: http://goo.gl/AErqYI
On May 4, 2015 9:13 AM, "technogeezer" <spider...@gmail.com> wrote:
> Hoe does one set a member of a structure within Tasker, i.e. how does one set up an equivalent action to 'wifiConfig.SSID = "blah"'?
I am pretty sure you would use the assign() method as described in the UG. I have never actually assigned anything to a field, so I'm not sure of the correct syntax.
I am pretty sure you would use the assign() method as described in the UG. I have never actually assigned anything to a field, so I'm not sure of the correct syntax.