Skip to content

Commit 801c3cf

Browse files
committed
fix ssid and rssi access
1 parent d570eeb commit 801c3cf

9 files changed

+9
-9
lines changed

examples/adafruit_io_http/adafruit_io_analog_in.py

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

4848
# Initialize a requests session
4949
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_digital_out.py

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

4747
# Initialize a requests session
4848
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_feeds.py

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

4747
# Initialize a requests session
4848
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_groups.py

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

4848
# If you are using a wifi based mcu use this instead of esp code above, remove the from
4949
# adafruit_esp32spi import line, optionally esp.connect(ssid, password)

examples/adafruit_io_http/adafruit_io_metadata.py

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

4646
# Initialize a requests session
4747
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_randomizer.py

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

4747
# Initialize a requests session
4848
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_simpletest_esp32spi.py

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

4646
# Initialize a requests session
4747
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_temperature.py

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

4848
# Initialize a requests session
4949
pool = adafruit_connection_manager.get_radio_socketpool(esp)

examples/adafruit_io_http/adafruit_io_weather.py

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

4646
# Initialize a requests session
4747
pool = adafruit_connection_manager.get_radio_socketpool(esp)

0 commit comments

Comments
 (0)