Skip to content

Commit 0b24c52

Browse files
authored
Merge pull request #226 from dhalbert/WL_STOPPED
add WLSTOPPED
2 parents e88bf27 + ca84f8b commit 0b24c52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adafruit_esp32spi/adafruit_esp32spi.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@
114114

115115
WL_NO_SHIELD = const(0xFF)
116116
WL_NO_MODULE = const(0xFF)
117+
WL_STOPPED = const(0xFE)
117118
WL_IDLE_STATUS = const(0)
118119
WL_NO_SSID_AVAIL = const(1)
119120
WL_SCAN_COMPLETED = const(2)
@@ -424,7 +425,7 @@ def _send_command_get_response(
424425
@property
425426
def status(self):
426427
"""The status of the ESP32 WiFi core. Can be WL_NO_SHIELD or WL_NO_MODULE
427-
(not found), WL_IDLE_STATUS, WL_NO_SSID_AVAIL, WL_SCAN_COMPLETED,
428+
(not found), WL_STOPPED, WL_IDLE_STATUS, WL_NO_SSID_AVAIL, WL_SCAN_COMPLETED,
428429
WL_CONNECTED, WL_CONNECT_FAILED, WL_CONNECTION_LOST, WL_DISCONNECTED,
429430
WL_AP_LISTENING, WL_AP_CONNECTED, WL_AP_FAILED"""
430431
resp = self._send_command_get_response(_GET_CONN_STATUS_CMD)

0 commit comments

Comments
 (0)