Update settings.toml to use cp expected name
This commit is contained in:
parent
64cbe840f5
commit
441221704e
2 changed files with 5 additions and 5 deletions
|
|
@ -24,9 +24,9 @@ for network in wifi.radio.start_scanning_networks():
|
|||
network.rssi, network.channel))
|
||||
wifi.radio.stop_scanning_networks()
|
||||
|
||||
print(f"Connecting to {os.getenv('WIFI_SSID')}")
|
||||
wifi.radio.connect(os.getenv("WIFI_SSID"), os.getenv("WIFI_PASSWORD"))
|
||||
print(f"Connected to {os.getenv('WIFI_SSID')}")
|
||||
print(f"Connecting to {os.getenv('CIRCUITPY_WIFI_SSID')}")
|
||||
wifi.radio.connect(os.getenv("CIRCUITPY_WIFI_SSID"), os.getenv("CIRCUITPY_WIFI_PASSWORD"))
|
||||
print(f"Connected to {os.getenv('CIRCUITPY_WIFI_SSID')}")
|
||||
print(f"My IP address: {wifi.radio.ipv4_address}")
|
||||
|
||||
ping_ip = ipaddress.IPv4Address("8.8.8.8")
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@
|
|||
# This is where you store the credentials necessary for your code.
|
||||
# The associated demo only requires WiFi, but you can include any
|
||||
# credentials here, such as Adafruit IO username and key, etc.
|
||||
WIFI_SSID = "your-wifi-ssid"
|
||||
WIFI_PASSWORD = "your-wifi-password"
|
||||
CIRCUITPY_WIFI_SSID = "your-wifi-ssid"
|
||||
CIRCUITPY_WIFI_PASSWORD = "your-wifi-password"
|
||||
Loading…
Reference in a new issue