File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ESP32_S2_WiFi_Tests/CPy_Native_WiFi_Test Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2424 network .rssi , network .channel ))
2525wifi .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 ' )} " )
3030print (f"My IP address: { wifi .radio .ipv4_address } " )
3131
3232ping_ip = ipaddress .IPv4Address ("8.8.8.8" )
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments