Closed
Description
In the example files, the MQTT port is missing and the microcontroller will not manage to connect to Adafruit IO giving an error in _get_connect_socket.
Adding a line with the port will solve this problem:
Initialize a new MQTT Client object
mqtt_client = MQTT.MQTT(
broker="io.adafruit.com",
port=1883, #IMPORTANT this is missing in the example file!
username=secrets["aio_username"],
password=secrets["aio_key"],
Metadata
Metadata
Assignees
Labels
No labels