Skip to content

Commit bbb2480

Browse files
committed
update examples to use ap_info
1 parent 5edee73 commit bbb2480

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/esp32spi/requests_esp32spi_advanced.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
except RuntimeError as e:
4141
print("could not connect to AP, retrying: ", e)
4242
continue
43-
print("Connected to", str(radio.ssid, "utf-8"), "\tRSSI:", radio.rssi)
43+
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)
4444

4545
# Initialize a requests session
4646
pool = adafruit_connection_manager.get_radio_socketpool(radio)

examples/esp32spi/requests_esp32spi_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
except RuntimeError as e:
4141
print("could not connect to AP, retrying: ", e)
4242
continue
43-
print("Connected to", str(radio.ssid, "utf-8"), "\tRSSI:", radio.rssi)
43+
print("Connected to", str(radio.ap_info.ssid, "utf-8"), "\tRSSI:", radio.ap_info.rssi)
4444

4545
# Initialize a requests session
4646
pool = adafruit_connection_manager.get_radio_socketpool(radio)

0 commit comments

Comments
 (0)