We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fce466b + ba68b3e commit 6f2e0ffCopy full SHA for 6f2e0ff
adafruit_esp32spi/adafruit_esp32spi.py
@@ -505,6 +505,12 @@ def ap_listening(self):
505
self.reset()
506
return False
507
508
+ def disconnect(self):
509
+ """Disconnect from the access point"""
510
+ resp = self._send_command_get_response(_DISCONNECT_CMD)
511
+ if resp[0][0] != 1:
512
+ raise RuntimeError("Failed to disconnect")
513
+
514
def connect(self, secrets):
515
"""Connect to an access point using a secrets dictionary
516
that contains a 'ssid' and 'password' entry"""
0 commit comments