Skip to content

Commit ce5a9f5

Browse files
author
brentru
committed
expose rssi from a method in wifimanager
1 parent 109eba6 commit ce5a9f5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

adafruit_esp32spi/adafruit_esp32spi_wifimanager.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,3 +211,11 @@ def pixel_status(self, value):
211211
"""
212212
if self.statuspix:
213213
self.statuspix.fill(value)
214+
215+
def signal_strength(self):
216+
"""
217+
Returns receiving signal strength indicator in dBm
218+
"""
219+
if not self._esp.is_connected:
220+
self.connect()
221+
return self._esp.rssi()

0 commit comments

Comments
 (0)