🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Atom always connects to AP with lowest signal ( 3 APs with same SSID)

    Micropython
    2
    3
    3.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mm-uiflow
      last edited by

      Any one have an idea for a solution?

      I found this thread https://esp32.com/viewtopic.php?t=18979
      its about the checkwifi function which may help but thats not micropython

      1 Reply Last reply Reply Quote 0
      • ajb2k3A
        ajb2k3
        last edited by

        What bands are the apps communicating on ?
        Esp32’s use the older 2.4Ghz band not the 5 GHz band

        UIFlow, so easy an adult can learn it!
        If I don't know it, be patient!
        I've ether not learned it or am too drunk to remember it!
        Author of the WIP UIFlow Handbook!
        M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

        1 Reply Last reply Reply Quote 0
        • M
          mm-uiflow
          last edited by

          The APs have 2ghz and 5ghz: wifi.scan show them here. it connects always on the AP with 22851-Gast Channel 1 with has really bad rssi -91 and not with the one 22851-Gast channel 11.
          i think the logic needs to impore here. or i need do write a function which searches for the best one and connects to it.

          (b'Labor', b'X\xc1z\xe5a\xc0', 11, -52, 3, False), (b'Phone', b'X\xc1z\xe5a\xc1', 11, -52, 3, False), (b'22851-int', b'X\xc1z\xe5a\xc2', 11, -52, 3, False), (b'22851-Gast'\xe5jA', 6, -68, 3, False), (b'Phone', b'X\xc1z\xe5jB', 6, -69, 3, False), (b'22851-Gast', b'X\xc1z\xe5j@', 6, -70, 3, False), (b'22851-Gast', b'X\xc1z\xe5l\xf1', 11, -80, 22851-int', b'X\xc1z\xe5l\xf0', 11, -80, 3, False), (b'22851-int', b'\xbc\xe6|^\x9f\x10', 6, -91, 3, False), (b'22851-Gast', b'\xbc\xe6|^\x9f\x11', 6, -91, 3, False), (b'Ph^\x9f\x12', 6, -93, 3, False), (b'Lager', b'X\xc1z"\xae ', 11, -94, 3, False)]

          i tried to use "WLAN.connect(ssid=22851-Gast, password=dfsfs, *, bssid=b'X\xc1z\xe5l\xf1)" to connect to the bssid specific which good connection
          but this is not working it says to much arguments taken

          1 Reply Last reply Reply Quote 0
          • First post
            Last post