← index #11462Issue #11996
Related · high · value 2.213
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

ValueError when connecting WiFi via BSSID on esp32

closedby MATTYGILOopened 2023-07-12updated 2023-07-13
bug

Hi am using an esp32s3 and trying to connect to my WiFi via BSSID

I am using this code (With my credentials):

import network
import enterprise
station = network.WLAN(network.STA_IF)
station.active(True)
station.connect("ssid", "password", bssid="aa:aa:aa:aa:aa:aa")

and getting this error:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: 

All help would be much appreciated

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