Connect to the Best Avaialble Wifi Network

Make sure that the network connection your connected to has the best signal

  1. joaomgcd
    For this task you'll need:

    STEP 1 - CHECK CURRENT WIFI NETWORKS


    • Create a new Task called Connect To Best Wifi
    • Add an AutoTools Connectivity action
    • Enable the Wifi -> Check Wifi Networks option
    (i) This will make AutoTools create a variable with JSON which will contain all the nearby wifi networks ordered from best to worst signal strength.
    /!\ On most modern devices location will need to be on for Wifi Scanning to work.
    • Add an AutoTools JSON Read action
    • Set the Json field to %atwifinetworks
    • Set the Fields to ssid
    (i) ssid is one of the fields that is available in the JSON that we got from the previous action
    • Go back to Tasker and add a Flash action just to confirm that you got the correct ssid


    STEP 2 - CONNECT TO BEST SSID


    • Add another AutoTools Connectivity action
    • Set the Wifi -> SSID setting to %ssid
    (i) %ssid is the variable we got from the JSON Read action above. It's simply the first SSID on the list. Since AutoTools automatically ordered the list by signal strength we automatically get the ssid of the wifi network with the best signal


    Now if you run this task at any time you'll connect to the wifi network that has the best signal strenght :cool:
    Speshal likes this.

Recent Reviews

  1. Waqas Siddiqui
    Waqas Siddiqui
    1/5,
    It shows the strongest ssid, but does not connect it it no matter how many time I run this task
  2. GXG.O
    GXG.O
    5/5,
    Very usefull tutorial. Thank you very much.
    Now, I'm trying to figure out what would be the best way to trigger this task automatically.
    Do you have any ideas?
  3. cyberbastion
    cyberbastion
    5/5,
    Thanks. It's work exactly. If you having issue on Flash %atwifinetworks or ssid and showing {"wifis"[]}. Please make sure you have allow your autotools location as "Allow all the time"
  4. Sergio Miranda
    Sergio Miranda
    4/5,
    HI, i have a MI9 and one time worked, but now it doesn't. I followed all the steps and make the ADB permissions. But I only get a message flash wit %ssid. If I add a Flash to show the JSON varible, it contains {"wifis"[]}. Please help me . Thank you.
  5. hyborian
    hyborian
    5/5,
    Excellent. This tutorial also allowed me to build a task to skip persistent WiFi Networks I don't want, since "Forgetting" them with phone settings won't keep them forgotten forever and they come back.
  6. terry henderson
    terry henderson
    5/5,
    Very useful as locations change throughout the day.
  7. Speshal
    Speshal
    5/5,
    Very useful!