Uses of Class
org.openhab.core.io.transport.mqtt.MqttWillAndTestament
-
Uses of MqttWillAndTestament in org.openhab.core.io.transport.mqtt
Modifier and TypeMethodDescriptionstatic @Nullable MqttWillAndTestament
MqttWillAndTestament.fromString
(@Nullable String string) Create an instance of the last will using a string with the following format:
topic:message:qos:retained
Where topic is a normal topic string (no placeholders are allowed) message the message to send qos Valid values are 0 (Deliver at most once),1 (Deliver at least once) or 2 retain true if messages shall be retainedstatic @Nullable MqttWillAndTestament
MqttWillAndTestament.fromString
(@Nullable String string, @Nullable String topic, byte @Nullable [] payload, @Nullable Integer qos, @Nullable Boolean retain) @Nullable MqttWillAndTestament
MqttBrokerConnection.getLastWill()
Return the last will object or null if there is none.Modifier and TypeMethodDescriptionvoid
MqttBrokerConnection.setLastWill
(@Nullable MqttWillAndTestament lastWill) Set the last will object.void
MqttBrokerConnection.setLastWill
(@Nullable MqttWillAndTestament lastWill, boolean applyImmediately) Set the last will object.