withWillTopic method

MqttConnectMessage withWillTopic(
  1. String willTopic
)

Sets the Will topic.

Implementation

MqttConnectMessage withWillTopic(String willTopic) {
  payload.willTopic = willTopic;
  return this;
}