Skip to content

Commit 66e64e8

Browse files
authored
Merge pull request #2378 from adafruit/beta6_variables
updating variable names
2 parents f28beb6 + 55054a3 commit 66e64e8

File tree

5 files changed

+5
-5
lines changed
  • CircuitPython_Mastodon_API_Examples
  • NeoPixel_Sprite_Weather_Display
  • PicoW_CircuitPython_HTTP_Server
  • Scrolling_Alphanumeric_Countdown_Clock

5 files changed

+5
-5
lines changed

CircuitPython_Mastodon_API_Examples/Read_From_Mastodon/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
hashtag = "CircuitPython"
1515

1616
# connect to SSID
17-
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
17+
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
1818

1919
# add your mastodon token as 'mastodon_token' to your settings.toml file
2020
headers = {'Authorization': 'Bearer ' + os.getenv('mastodon_token') + 'read:statuses'}

CircuitPython_Mastodon_API_Examples/Send_To_Mastodon/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
url = 'https://' + os.getenv('mastodon_host') + '/api/v1/statuses'
1515

1616
# connect to SSID
17-
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
17+
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
1818

1919
pool = socketpool.SocketPool(wifi.radio)
2020
requests = adafruit_requests.Session(pool, ssl.create_default_context())

NeoPixel_Sprite_Weather_Display/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
weather_url += "&current_weather=true&temperature_unit=%s&windspeed_unit=mph" % temperature_unit
4444

4545
# connect to SSID
46-
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
46+
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
4747

4848
pool = socketpool.SocketPool(wifi.radio)
4949
requests = adafruit_requests.Session(pool, ssl.create_default_context())

PicoW_CircuitPython_HTTP_Server/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def c_to_f(temp):
7575
gateway = ipaddress.IPv4Address("192.168.1.1")
7676
wifi.radio.set_ipv4_address(ipv4=ipv4,netmask=netmask,gateway=gateway)
7777
# connect to your SSID
78-
wifi.radio.connect(os.getenv('WIFI_SSID'), os.getenv('WIFI_PASSWORD'))
78+
wifi.radio.connect(os.getenv('CIRCUITPY_WIFI_SSID'), os.getenv('CIRCUITPY_WIFI_PASSWORD'))
7979

8080
print("Connected to WiFi")
8181
pool = socketpool.SocketPool(wifi.radio)

Scrolling_Alphanumeric_Countdown_Clock/code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def reset_on_error(delay, error):
5555

5656

5757
try:
58-
wifi.radio.connect(os.getenv("WIFI_SSID"), os.getenv("WIFI_PASSWORD"))
58+
wifi.radio.connect(os.getenv("CIRCUITPY_WIFI_SSID"), os.getenv("CIRCUITPY_WIFI_PASSWORD"))
5959
# any errors, reset MCU
6060
except Exception as e: # pylint: disable=broad-except
6161
reset_on_error(10, e)

0 commit comments

Comments
 (0)