/
HiveMQ MQTT 5 Client Disconnect Reason Codes

HiveMQ MQTT 5 Client Disconnect Reason Codes

This table summarizes disconnection scenarios, and the resultant reason codes when using a MQTT 5 client

Method

Reason Code

Reason String

Method

Reason Code

Reason String

onAuthenticationFailedDisconnect

NOT_AUTHORIZED

Unknown authentication key or wrong authentication secret

onClientInitiatedDisconnect

NORMAL_DISCONNECTION

Empty

onServerInitiatedDisconnect

ADMINISTRATIVE_ACTION

Empty

onConnectionLost

Empty

Empty

 

Related content

onConnectionLost and onServerInitiatedDisconnect event behavior
onConnectionLost and onServerInitiatedDisconnect event behavior
More like this
MQTTv3 client disconnected with reason: Sent too many concurrent PUBLISH messages.
MQTTv3 client disconnected with reason: Sent too many concurrent PUBLISH messages.
More like this