Skip to content

Commit

Permalink
Merge pull request #208 from dhalbert/update-ap_info
Browse files Browse the repository at this point in the history
update examples to use ap_info
  • Loading branch information
dhalbert authored Feb 26, 2025
2 parents 5edee73 + bbb2480 commit 6c33451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/esp32spi/requests_esp32spi_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
except RuntimeError as e:
print("could not connect to AP, retrying: ", e)
continue
print("Connected to", str(radio.ssid, "utf-8"), "\tRSSI:", radio.rssi)
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)

# Initialize a requests session
pool = adafruit_connection_manager.get_radio_socketpool(radio)
Expand Down
2 changes: 1 addition & 1 deletion examples/esp32spi/requests_esp32spi_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
except RuntimeError as e:
print("could not connect to AP, retrying: ", e)
continue
print("Connected to", str(radio.ssid, "utf-8"), "\tRSSI:", radio.rssi)
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)

# Initialize a requests session
pool = adafruit_connection_manager.get_radio_socketpool(radio)
Expand Down

0 comments on commit 6c33451

Please sign in to comment.