• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help wifi toggle with weak signal

nyydynasty

Android Expert
Sep 13, 2010
956
173
NY
i'm trying to setup a tasker profile that will turn off and turn back on wifi while connected to my home wifi network. I have two AP's setup in my house and all the wireless devices we have will not switch to the stronger AP unless the previous signal drops and then it will reconnect to the stronger signal. So if I can get it to toggle the wifi switch on the device when, for instance, the wifi signal drops below 2 bars, then it will always connect to the stronger signal.

The reason I'm trying to do this is also because there are a couple of rooms in the house where you'll be connected to the weaker AP, even though another AP is stronger/closer. Unless you manually toggle wifi, the device is very slow to load data.

thanks
 
never mind ... i found a work around after searching google for a while. If anyone is interested in doing the same, this is how i got it to work:

Profile 1:Context 1 - WiFi Connected (to Home WiFi)
Profile 1:Context2 - Time, repeat every X minutes (you choose this value, minimum allowed is 2 minutes)
Profile 1:Task 1 - Var Set (NAME:%WiFiInfo TO : WIFII)
Profile 1:Task 2 - Var Split (NAME:%WiFiInfo SPLITTER: Sig
Profile 1:Task 3 - Var Section (NAME: %WiFiInfo2 FROM:1 LENGTH:2 STORE:%WIFISIG)

Profile 2:Context 1 - Var Set (NAME:%WIFISIG)
Profile 2:Task 1 -IF %WIFISIG < X (you choose the signal strength you want, I chose 2)...toggle wifi within the IF statement
 
Last edited:
  • Like
Reactions: codesplice
Upvote 0
Instead of parsing the wifi info every few minutes, you can use an Intent Received profile. Go to "Event" / "System" / "Intent Received" and use the android.net.wifi.RSSI_CHANGED action.

Then, on every signal quality change, Tasker sets the local variable %newrssi to the current signal strength in dBm. If that value is below a certain threshold (e.g., -75), execute your wifi-switching task in Profile 2:Task 1, and you're done… ;)
 
Upvote 0
Instead of parsing the wifi info every few minutes, you can use an Intent Received profile. Go to "Event" / "System" / "Intent Received" and use the android.net.wifi.RSSI_CHANGED action.

Then, on every signal quality change, Tasker sets the local variable %newrssi to the current signal strength in dBm. If that value is below a certain threshold (e.g., -75), execute your wifi-switching task in Profile 2:Task 1, and you're done… ;)
Nice! Listening for that intent should be much more battery-friendly than constantly waking the device so Tasker can check. Thanks!!
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones