Skip to content

Message published multiple times #74

Description

@gfoiani

Hi,

I successfully setup pubsubclient to send messages to my remote MQTT broker (RabbitMQ), but when I publish a message it is published multiple times on the broker (RabbitMQ does not support QoS2).
I'm using PublishJSON, the content is correctly received by the broker but it is received multiple times. This is the code, topic is a String and object is a JsonObject&:

MQTT::PublishJSON newpub(topic, object);
mqttClient.publish(newpub.set_qos(1));

Any idea why the message is sent multiple times?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions