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



  • 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



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



  • 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