Re: Wifi Status variable

4,432 views
Skip to first unread message
Message has been deleted

BossMan

unread,
Aug 18, 2010, 4:29:59 AM8/18/10
to Tasker
Wifi enabling means "wifi is being turned on". %WIFI is on when wifi
is on, regardless of connection status.

If you want to check the connection, use %WIFII variable (Wifi Info) -
if you're connected it will have CONNECTION string inside, so you
could search for *connection* pattern.
But for your purpose, I think Wifi Connected state context should do
the trick.

BR,
A.

On Aug 17, 9:55 pm, Reiner Critides <reinercriti...@gmail.com> wrote:
> WiFi Status (dynamic) - %WIFI
> Whether WiFi is on or off. Note: if WiFi is enabling or disabled, in
> fact anything but enabled, it's classed as off.
>
> So when wifi is on, but not connected to a network it is classified as
> 'off''?
>
> I am trying to have it so that when I leave range of any wifi I am
> currently connected to, it will shut off wifi instead of eating
> battery by polling for a connection.
>
> If I am interpreting this variable correctly, then all I need it to do
> is to turn off wifi when %WIFI=off. Does this sound correct? or has
> anyone else achieved this using a different method?

Fubrite

unread,
Aug 18, 2010, 4:48:14 AM8/18/10
to Tasker
No, if Wifi is on but not connected, it is classed as on.

> Note: if WiFi is enabling or disabled, in
> fact anything but enabled, it's classed as off.

This bit refers to the brief moment while the wifi adapter is enabling/
disabling itself after being switched on/off.

For what you want to do, I would use a context State->Wifi Connected
with 'Invert' checked and Task Wifi off.

Fubrite

unread,
Aug 18, 2010, 4:49:19 AM8/18/10
to Tasker
Whoops - that'll teach me to start composing a message and forget
about it for 20 mins!

Sorry!

Wayne L

unread,
Aug 24, 2010, 1:24:48 AM8/24/10
to Tasker
So in other words there is no built-in tasker variable that can be
used to check if wifi is connected.

Along the same vein as the original poster, I'm trying to make a task
to cut wifi power if it detects it is not wifi connected, BUT only
after a short delay. The short delay is added another step of setting
a variable (I don't want my task to cut my wifi power while I'm
searching and entering the passkey for a new wifi access point, during
a technically unconnected state.)

So far:

Task 1:
Context: wifi connected
Enter task: set %connected=1
Exit task: set %connected=0

Task 2:
Context: not wifi connected+not on AC power
Exit task: wait 1 minute
Wifi off if %connected=0

The reason for 2 tasks is that there is not a way to poll if wifi is
connected, as a task, only as a context. Am I mistaken?



On Aug 18, 1:49 am, Fubrite <Ste...@fubrite.freeserve.co.uk> wrote:
> Whoops - that'll teach me to start composing a message and forget
> about it for 20 mins!
>
> Sorry!
>
> On Aug 18, 9:48 am, Fubrite <Ste...@fubrite.freeserve.co.uk> wrote:
>
>
>
> > No, if Wifi is on but not connected, it is classed as on.
>
> > > Note: if WiFi is enabling or disabled, in
> > > fact anything but enabled, it's classed as off.
>
> > This bit refers to the brief moment while the wifi adapter is enabling/
> > disabling itself after being switched on/off.
>
> > For what you want to do, I would use a context State->Wifi Connected
> > with 'Invert' checked and Task Wifi off.
>

Wayne L

unread,
Aug 24, 2010, 1:31:46 AM8/24/10
to Tasker
Oh wait, there's the *connection* match with the %wifii variable I
could use.

So maybe:

Context: not wifi connected+not on AC power
Exit task: wait 1 minute
Wifi off if %wifii matches *connection*
Reply all
Reply to author
Forward
0 new messages