Convenient class to generate MqttConnectOptions
Notes: 1.
Notes: 1. MqttClientPersistence will be set to null. @see org.eclipse.paho.client.mqttv3.MqttMessage#setQos(int) 2. MQTT client will auto-reconnect
ex tcp://test.mosquitto.org:1883
MqttAsyncClient id. If left null, the code falls back to a generated ID.
messages received when disconnected will be stash.
Messages isOverdue after stashTimeToLive will be discard. See also stashCapacity
pubSubStash will be drop first haft elems when reach this size
when received Disconnected event, we will first delay reconnectDelayMin to try Connect. + if connect success => we reinit connectCount + else => ConnListener.onFailure will send Disconnected to this FSM => we re-schedule Connect with
delay = reconnectDelayMin * 2^connectCount
max delay to retry connecting
This class wrap params for publishing to mqtt.
This class wrap params for publishing to mqtt.
Send an instance of this class to the MqttPubSub actor for publishing:
pubsub ! Publish("some_topic", "12345".getBytes
TODO support wildcards subscription TODO support Unsubscribe
Convenient class to generate MqttConnectOptions
nullable
nullable
Sets whether the client and server should remember state across restarts and reconnects
The max inflight limits to how many messages we can send without receiving acknowledgments. Default is
MAX_INFLIGHT_DEFAULT * 10
A last will and testament message (and topic, and qos) that will be set on the connection