We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec7ef71 commit f89ce7aCopy full SHA for f89ce7a
1 file changed
adafruit_esp32spi/adafruit_esp32spi.py
@@ -304,7 +304,11 @@ def ip_address(self):
304
305
@property
306
def is_connected(self):
307
- return self.status == WL_CONNECTED
+ try:
308
+ return self.status == WL_CONNECTED
309
+ except RuntimeError:
310
+ self.reset()
311
+ return False
312
313
def connect(self, settings):
314
self.connect_AP(settings['ssid'], settings['password'])
0 commit comments