Skip to content

Commit

Permalink
The same for AP
Browse files Browse the repository at this point in the history
  • Loading branch information
bill88t committed Dec 28, 2024
1 parent 9249d25 commit afd7695
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/driver_wifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ def connect(self, ssid: str, passwd=None, retries: int = 3) -> bool:
self._ssid = ssid
return True

def connect_ap(self, ssid, passwd=None) -> bool:
def connect_ap(self, ssid: str, passwd=None) -> bool:
"""
Create an AP.
"""

self.disconnect_ap()
try:
if passwd is not None:
if passwd:
wifi.radio.start_ap(ssid=ssid, password=passwd)
else:
wifi.radio.start_ap(ssid=ssid)
Expand Down

0 comments on commit afd7695

Please sign in to comment.