Skip to content

Commit a5c51e8

Browse files
authored
Merge pull request #2606 from makermelissa/main
Update settings.toml to use cp expected name
2 parents 64cbe84 + 4412217 commit a5c51e8

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ESP32_S2_WiFi_Tests/CPy_Native_WiFi_Test/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
network.rssi, network.channel))
2525
wifi.radio.stop_scanning_networks()
2626

27-
print(f"Connecting to {os.getenv('WIFI_SSID')}")
28-
wifi.radio.connect(os.getenv("WIFI_SSID"), os.getenv("WIFI_PASSWORD"))
29-
print(f"Connected to {os.getenv('WIFI_SSID')}")
27+
print(f"Connecting to {os.getenv('CIRCUITPY_WIFI_SSID')}")
28+
wifi.radio.connect(os.getenv("CIRCUITPY_WIFI_SSID"), os.getenv("CIRCUITPY_WIFI_PASSWORD"))
29+
print(f"Connected to {os.getenv('CIRCUITPY_WIFI_SSID')}")
3030
print(f"My IP address: {wifi.radio.ipv4_address}")
3131

3232
ping_ip = ipaddress.IPv4Address("8.8.8.8")

ESP32_S2_WiFi_Tests/CPy_Native_WiFi_Test/settings.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
# This is where you store the credentials necessary for your code.
66
# The associated demo only requires WiFi, but you can include any
77
# credentials here, such as Adafruit IO username and key, etc.
8-
WIFI_SSID = "your-wifi-ssid"
9-
WIFI_PASSWORD = "your-wifi-password"
8+
CIRCUITPY_WIFI_SSID = "your-wifi-ssid"
9+
CIRCUITPY_WIFI_PASSWORD = "your-wifi-password"

0 commit comments

Comments
 (0)