Skip to content

Commit eca0484

Browse files
committed
fixing simpletest
1 parent 8212c46 commit eca0484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/minimqtt_simpletest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# Adafruit IO-style Topic
3333
# Use this topic if you'd like to connect to io.adafruit.com
34-
# mqtt_topic = secrets["aio_username"] + '/feeds/temperature'
34+
# mqtt_topic = aio_username + '/feeds/temperature'
3535

3636

3737
### Code ###
@@ -77,8 +77,8 @@ def message(client, topic, message):
7777
mqtt_client = MQTT.MQTT(
7878
broker="io.adafruit.com",
7979
port=8883,
80-
username=os.getenv("CIRCUITPY_WIFI_SSID"),
81-
password=os.getenv("CIRCUITPY_WIFI_PASSWORD"),
80+
username=aio_username,
81+
password=aio_key,
8282
socket_pool=pool,
8383
ssl_context=ssl.create_default_context(),
8484
)

0 commit comments

Comments
 (0)