From eedd124d431104c692f297a7c70da824f23db616 Mon Sep 17 00:00:00 2001 From: Tyeth Gundry Date: Mon, 5 Aug 2024 21:18:42 +0100 Subject: [PATCH] Correct field names for Adafruit IO to match website --- .../adafruit_io_cpu_temp_neopixel_color/code.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CircuitPython_Templates/adafruit_io_cpu_temp_neopixel_color/code.py b/CircuitPython_Templates/adafruit_io_cpu_temp_neopixel_color/code.py index e27c28fde..72a8186c3 100644 --- a/CircuitPython_Templates/adafruit_io_cpu_temp_neopixel_color/code.py +++ b/CircuitPython_Templates/adafruit_io_cpu_temp_neopixel_color/code.py @@ -48,8 +48,8 @@ def message(client, feed_id, payload): # pylint: disable=unused-argument # Initialize a new MQTT Client object mqtt_client = MQTT.MQTT( broker="io.adafruit.com", - username=os.getenv("ADAFRUIT_IO_USERNAME"), - password=os.getenv("ADAFRUIT_IO_KEY"), + username=os.getenv("ADAFRUIT_AIO_USERNAME"), + password=os.getenv("ADAFRUIT_AIO_KEY"), socket_pool=pool, ssl_context=ssl.create_default_context(), )