Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Broker Disconnect Error Codes

Error Code

Reason

Details

Suggested Action

21/22/

15

Lookup Error

The broker address could not be parsed or connected to.

Likely cause(s):

  • The DNS could not be reached

Check that your broker address is input correctly and is reachable from the node.

21, 22, 23

Timeout waiting for PUBACK

/

, PUBREC

/

, PUBCOMP (respectively)

The MQTT client connection is publishing with a

specific QoS and is expecting a response back

QoS that requires response(s) from the broker

that was never received. This could happen for several reasons but the main two are that the broker

to ensure delivery. The MQTT client is not receiving the expected response from the broker.

Likely cause(s):

  • The broker may not support the QoS

that is
  • configured

or the
  • in the publisher object or publish schedules

  • The response message was lost in transit

.Ensure your broker address is reachable from the node

Try lowering the QoS on your publisher object or publish schedules.

15

Lookup Error

The broker address could not be connected to, this might be because the DNS could not be reached.

QoS 1 requires PUBACK.

QoS 2 requires PUBREC AND PUBCOMP.