@@ -412,14 +412,24 @@ def wifi_set_entenable(self):
412412 raise RuntimeError ("Failed to enable enterprise mode" )
413413
414414 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+ """
416421 resp = self ._send_command_get_response (_SET_AP_NET_CMD , [ssid , channel ])
417422 if resp [0 ][0 ] != 1 :
418423 raise RuntimeError ("Failed to setup AP network" )
419424
420425 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+ """
423433 resp = self ._send_command_get_response (_SET_AP_PASSPHRASE_CMD , [ssid , passphrase , channel ])
424434 if resp [0 ][0 ] != 1 :
425435 raise RuntimeError ("Failed to setup AP password" )
@@ -497,7 +507,7 @@ def connect_AP(self, ssid, password): # pylint: disable=invalid-name
497507 raise RuntimeError ("No such ssid" , ssid )
498508 raise RuntimeError ("Unknown error 0x%02X" % stat )
499509
500- def create_AP (self , ssid , password , channel = b'\x01 ' ):
510+ def create_ap (self , ssid , password , channel = b'\x01 ' ):
501511 """Create an access point with the given name and password."""
502512 if isinstance (ssid , str ):
503513 ssid = bytes (ssid , 'utf-8' )
0 commit comments