I wonder if there's a simple way to check the dbm value of wifi reception on MP.
According to the doc, there's a scan() that returns a list of access points. Here is what I got:
(b'my_SSID', b'\xd8\x07\xb6\xd8\xc0/', 5, -34, 3, False)
I wonder if the -34 is the dBm. Can I get the strength of specific AP instead of using scan() or getting currently connected AP's strength? Thanks.
Checking WiFi strength?
Re: Checking WiFi strength?
Code: Select all
try:
rssi = sta_if.status('rssi')
print ('RSSI = ' + str(rssi) + 'dBm')
except:
print ('signal level too low')
Re: Checking WiFi strength?
That works! Thank you! If I may ask, where can I find the complete official doc for wlan? Is the following it?
https://docs.micropython.org/en/latest/ ... twork.html
I thought I should look under ESP8266 and/or ESP32 but didn't realize under network library there are these very brief descriptions.
https://docs.micropython.org/en/latest/ ... twork.html
I thought I should look under ESP8266 and/or ESP32 but didn't realize under network library there are these very brief descriptions.