Skip to content

Commit

Permalink
Test on Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
tcamise-gpsw committed Dec 6, 2023
1 parent 5d01b68 commit 4462bd1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,10 @@ def connect(self, ssid: str, password: str, timeout: float = 15) -> bool:
response = cmd(
r"/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport --scan"
)
# TODO Sometimes the response is blank?
if not response:
logger.warning("MacOS did not return a response to SSID scanning.")
continue
lines = response.splitlines()
ssid_end_index = lines[0].index("SSID") + 4 # Find where the SSID column ends

Expand Down

0 comments on commit 4462bd1

Please sign in to comment.