Page 1 of 1

Connect to a Specific AP

Posted: 29 Dec 2020, 22:35
by Alan_37
Hi,
I am having a problem I have multiple Access points in my house they all have the same SSID
Sometimes ESP will choose to connect to the one in the other location with a very low signal.

Is there a way to make the esp connect to a specific Wifi Access point for
example to a specific AP Mac Address ?

Re: Connect to a Specific AP

Posted: 29 Dec 2020, 23:29
by TD-er
The BSSID is not stored in the WiFi settings, so after a power cycle the ESP may connect to any of the access points matching the SSID.

If you perform a WiFi scan (via the web interface for example) the ESP will connect to the known SSID with the strongest signal after a reconnect.
I thought I had it programmed to also use this algorithm at initial connect, but apparently not.

If a node needs to reconnect (also after a deep sleep or crash, not power cycle), it will first attempt to reconnect to the last BSSID it was connected to.

Re: Connect to a Specific AP

Posted: 29 Dec 2020, 23:53
by Alan_37
Thanks for your reply I understand.

It would be a nice addon if we could have a setting where we can specify
the mac address of the AP that we prefer the ESP to connect to
that would be perfect.

Re: Connect to a Specific AP

Posted: 30 Dec 2020, 00:01
by TD-er
That and a proper check for RSSI when connecting after a failed connect or a cold boot.

Re: Connect to a Specific AP

Posted: 30 Dec 2020, 00:10
by Alan_37
I just found a quick workaround for now,

it seems I can deny access to the specific mac's on the access point so the ESP won't be able to
connect to these AP's :)

Re: Connect to a Specific AP

Posted: 30 Dec 2020, 00:20
by TD-er
If you can do that (for example on MikroTik APs), why not add a second (or third) SSID on the same AP?

Re: Connect to a Specific AP

Posted: 30 Dec 2020, 00:24
by Alan_37
I am using TP-Link Deco, I have the blacklist option but cant create other SSID, only a guest network
but that would be on a separate VLAN won't be able to communicate with openHub.

for now, the blacklist works but if there is some problem in this AP won't have a fallback