Skip to content

Return values of MqttClient::subscribe not documented #100

Open
@UchihaYuki

Description

@UchihaYuki
auto result = mqttClient.subscribe(commandTopic);
Serial.printf("Subscription result %d\n", result);

Since there isn't doc yet I don't know what happened.

The MQTT broker I use is Mosquitto broker, I use it with Home Assistant. I set the version to 3.1.1. As far as I know, ArduinoMqttClient uses 3.1.1 as well. I don't know what happened so that subscribe failed. Or 1 means successful? But I haven't received any message from the broker.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: documentationRelated to documentation for the projecttype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions