ProtocolError

class ProtocolError(reasonCode: ReasonCode, message: String, cause: Throwable? = null) : MqttException

A protocol-level error occurred.

Covers malformed packets, unexpected packet types from the broker, and other MQTT protocol violations.

Constructors

Link copied to clipboard
constructor(reasonCode: ReasonCode, message: String, cause: Throwable? = 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.