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

How to get the infomation of wifi devices, such as mac

closedby EXboysopened 2016-12-20updated 2016-12-22

I use wlan.scan() and get bssid .
On the document, it says:bssid is hardware address of an access point, in binary form, returned as bytes object. You can use ubinascii.hexlify() to convert it to ASCII form.
So,i code my program like this.
But, i got b'00873632e71a' instead of the real mac string 'EC:55:F9:70:D8:45' . are they same? how to tranform each one into another?

Then , i am going to try another function 'network.Driver(name)'. Unfortunately, the program raise an error like this:

AttributeError: 'module' object has no attribute 'Driver'

Could anyone help me? Thanks!

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