MQTT v3 Java client reason codes
Look up the causes of reason codes in an MQTT v3 Java client exception or throwable.
Reason code | Value | Cause |
---|---|---|
REASON_CODE_BROKER_UNAVAILABLE |
3 |
|
REASON_CODE_CLIENT_ALREADY_CONNECTED |
32100 |
The client is already connected. |
REASON_CODE_CLIENT_ALREADY_DISCONNECTED |
32101 |
The client is already disconnected. |
REASON_CODE_CLIENT_DISCONNECT_PROHIBITED |
32107 |
Thrown when an attempt to call MqttClient.disconnect has been made from within a method on MqttCallback. |
REASON_CODE_CLIENT_DISCONNECTING |
32102 |
The client is currently disconnecting and cannot accept any new work. |
REASON_CODE_CLIENT_EXCEPTION |
0 |
Client encountered an exception. |
REASON_CODE_CLIENT_NOT_CONNECTED |
32104 |
The client is not connected to the server. |
REASON_CODE_CLIENT_TIMEOUT |
32000 |
Client timed out while waiting for a response from the server. |
REASON_CODE_FAILED_AUTHENTICATION |
4 |
Authentication with the server has failed, due to a bad user name or password. |
REASON_CODE_INVALID_CLIENT_ID |
2 |
The server has rejected the supplied client ID. |
REASON_CODE_INVALID_PROTOCOL_VERSION |
1 |
The protocol version requested is not supported by the server. |
REASON_CODE_NO_MESSAGE_IDS_AVAILABLE |
32001 |
Internal error, caused by no new message IDs being available. |
REASON_CODE_NOT_AUTHORIZED |
5 |
Not authorized to perform the requested operation. |
REASON_CODE_SERVER_CONNECT_ERROR |
32103 |
Unable to connect to server. |
REASON_CODE_SOCKET_FACTORY_MISMATCH |
32105 |
Server URI and supplied SocketFactory do not match. |
REASON_CODE_SSL_CONFIG_ERROR |
32106 |
SSL configuration error. |
REASON_CODE_UNEXPECTED_ERROR |
6 |
An unexpected error has occurred. |