@@ -412,14 +412,24 @@ def wifi_set_entenable(self):
412
412
raise RuntimeError ("Failed to enable enterprise mode" )
413
413
414
414
def wifi_set_ap_network (self , ssid , channel ):
415
- """TODO Docs"""
415
+ """
416
+ Creates an Access point with SSID and Channel
417
+
418
+ :param ssid: the SSID of the created Access Point. Must be 8 or more characters
419
+ :param channel: channel of created Access Point (1 - 14).
420
+ """
416
421
resp = self ._send_command_get_response (_SET_AP_NET_CMD , [ssid , channel ])
417
422
if resp [0 ][0 ] != 1 :
418
423
raise RuntimeError ("Failed to setup AP network" )
419
424
420
425
def wifi_set_ap_passphrase (self , ssid , passphrase , channel ):
421
- """TODO Docs"""
422
- """ TODO: Why does this command refuse to work? creating AP w/out password works fine"""
426
+ """
427
+ Creates an Access point with SSID, passphrase, and Channel
428
+
429
+ :param ssid: the SSID of the created Access Point. Must be 8 or more characters
430
+ :param passphrase: the password of the created Access Point. Must be 8 or more characters.
431
+ :param channel: channel of created Access Point (1 - 14).
432
+ """
423
433
resp = self ._send_command_get_response (_SET_AP_PASSPHRASE_CMD , [ssid , passphrase , channel ])
424
434
if resp [0 ][0 ] != 1 :
425
435
raise RuntimeError ("Failed to setup AP password" )
@@ -497,7 +507,7 @@ def connect_AP(self, ssid, password): # pylint: disable=invalid-name
497
507
raise RuntimeError ("No such ssid" , ssid )
498
508
raise RuntimeError ("Unknown error 0x%02X" % stat )
499
509
500
- def create_AP (self , ssid , password , channel = b'\x01 ' ):
510
+ def create_ap (self , ssid , password , channel = b'\x01 ' ):
501
511
"""Create an access point with the given name and password."""
502
512
if isinstance (ssid , str ):
503
513
ssid = bytes (ssid , 'utf-8' )
0 commit comments