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 24
24
network .rssi , network .channel ))
25
25
wifi .radio .stop_scanning_networks ()
26
26
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 ' )} " )
30
30
print (f"My IP address: { wifi .radio .ipv4_address } " )
31
31
32
32
ping_ip = ipaddress .IPv4Address ("8.8.8.8" )
Original file line number Diff line number Diff line change 5
5
# This is where you store the credentials necessary for your code.
6
6
# The associated demo only requires WiFi, but you can include any
7
7
# 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