ConnectionRejected

class ConnectionRejected(reasonCode: ReasonCode, message: String, cause: Throwable? = null, val serverReference: String? = null) : MqttException

The broker rejected the CONNECT request (§3.2).

Constructors

Link copied to clipboard
constructor(reasonCode: ReasonCode, message: String, cause: Throwable? = null, serverReference: String? = null)

Properties

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?
Link copied to clipboard

The MQTT 5.0 reason code associated with this error.

Link copied to clipboard

Optional server reference for redirect handling (§4.13). Non-null when the reason code is ReasonCode.USE_ANOTHER_SERVER or ReasonCode.SERVER_MOVED.