← index #11462Issue #2899
Related · high · value 3.354
QUERY · ISSUE

Add BSSID to network.config() list

openby Jamie4224opened 2023-05-10updated 2023-05-10
enhancement

It is currently possible to see the list of available BSSIDs using network.scan(), and it is then possible to connect to a specific BSSID using network.connect(bssid=...), but it is not possible to see to which BSSID we are currently connected (while it is possible to see the SSID, using network.config('essid')).

A useful reason for this would be so that you can do network.connect(ssid=...) and then figure out which BSSID you are connected to.

I have been looking though the ESP32 port as that is the port that applies for me, but I can't figure out how to add this feature.

Would someone be able to help out here?

CANDIDATE · ISSUE

Connect to WiFi via BSSID (and not the SSID)

closedby mitchinsopened 2017-02-22updated 2022-08-01

Forgive me if I'm wrong but this stumped me yesterday.

As per the documentation I read carefully connect method of the NIC driver only allows for SSID specification, however I had several access points of differing strength (which I could clearly see in the scan() method) but I could not provide the BSSID and it was connecting to the poorest one for some reason which was woeful.

Is there a way to connect with BSSID that is not explicitly documented, or is there a way we can implement it? I am not familiar with the HAL for the network chip, but it seems NodeMCU have added it at some point so it must be possible.

I suppose even if we could specify the channel that could allow us to do some shuffling, but BSSID would be ideal as it's returned in the scan along with signal strength.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied