4

Event that fires wifi is turned off

Event that fires wifi is turned off.

When I'm just out of range on wifi so that no data can be transmitted but the phone still thinks im connected, I often turn the wifi off but then I forget to turn it back on. 

With this I could create a task that would detect the turn off then wait 30 minutes and turn it back on again. 

3 replies

SA

Then turn wifi off and check what %wifii shows is the off state text. Then check for that text. I did mention that you would need to check for the value you wanted.

I don't want to detect connected or not, I want to know when the wifi is turned off.

Sadly the variable returns scan even when it turned off. 

But it looks like the %WiFi could do the trick

SA

You can already check if wifi is connected or not and/or its current state via the %WIFII global variable. you just have a variable as the event trigger "variable changed" %WIFII. then a task should check IF %WIFII "doesn't contain"  "CONNECTION" (You can check all possible values by "flashing" a toast with %WIFII when your wifi is in different states.)

CONNECTION = connected

SCAN = Not connected but turned on

Please test other states to get their values