Builder
Mutable builder for MqttConfig.
All properties default to the same values as the MqttConfig data class constructor. Set only the properties you want to customize.
Properties
Initial authentication data for enhanced auth (§3.1.2.11.10).
Authentication method for enhanced authentication (§4.12).
If true, automatically reconnect with exponential backoff on connection loss.
If true, the broker discards any existing session state (§3.1.2.4).
Default QoS level for convenience MqttClient.publish calls.
Default retain flag for convenience MqttClient.publish calls.
Maximum interval in seconds between control packets (§3.1.2.10). Range: 0..65,535.
Optional MqttLogger for receiving library log output.
Minimum log level for messages delivered to logger.
Maximum MQTT packet size in bytes the client accepts (§3.1.2.11.5).
Maximum consecutive reconnect attempts. 0 = unlimited.
Maximum concurrent in-flight QoS 1/2 messages. Range: 1..65,535 (§3.1.2.11.4).
Initial delay in milliseconds between reconnection attempts. Must be > 0.
Maximum delay in milliseconds between reconnection attempts.
If true, allows Reason String and User Properties on failure packets (§3.1.2.11.8).
If true, requests Response Information in CONNACK (§3.1.2.11.7).
Session state retention duration in seconds after disconnect (§3.1.2.11.3).
Maximum topic aliases the client accepts from the broker (§3.1.2.11.6).
Application-defined key-value pairs sent with the CONNECT packet.
Optional will message published on unexpected disconnect (§3.1.3.2).
Functions
Build the immutable MqttConfig from the current builder state.
Configure a will message using a DSL block.