MqttProtocolVersion

MQTT protocol version for the client connection.

Determines the wire format, packet encoding, and available features. MQTT 3.1.1 uses a simpler packet format without properties, reason codes in most packets, or advanced features like topic aliases and enhanced auth.

Entries

Link copied to clipboard

MQTT 3.1.1 (protocol level 4).

Link copied to clipboard

MQTT 5.0 (protocol level 5).

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The protocol level byte sent in the CONNECT packet variable header.

Link copied to clipboard

Returns true if this version supports MQTT 5.0 properties on packets.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.