Will Config
Configuration for an MQTT 5.0 Will Message (§3.1.3.2).
The will message is published by the broker when the client disconnects unexpectedly (e.g. network failure, keepalive timeout). If the client disconnects gracefully via MqttClient.disconnect, the will message is discarded unless DISCONNECT is sent with reason code org.meshtastic.mqtt.ReasonCode.DISCONNECT_WITH_WILL.
All binary data uses ByteString for immutability.
Constructors
Convenience constructor accepting raw bytes (copied into an immutable ByteString).
Types
Properties
MIME content type of the will payload (e.g. "application/json").
Correlation data for request/response pattern in the will message.
Lifetime of the will message in seconds after publication. Range: 0..4,294,967,295. null = no expiry.
If true, the will payload is UTF-8 encoded text.
Topic for request/response pattern in the will message.
Application-defined key-value pairs sent with the will message.
Delay in seconds between the server detecting an unexpected disconnect and publishing the will message. Allows time for the client to reconnect and cancel the will. Range: 0..4,294,967,295. null = publish immediately (§3.1.3.2).