Skip to content

MQTT port missing  #89

Closed
Closed
@Vsaggiomo

Description

@Vsaggiomo

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions