withWillTopic method

MqttConnectMessage withWillTopic(
  1. String willTopic
)

Sets the Will Topic

Implementation

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