withWillMessage method

MqttConnectMessage withWillMessage(
  1. String willMessage
)

Sets the will message.

Implementation

MqttConnectMessage withWillMessage(String willMessage) {
  will();
  payload.willMessage = willMessage;
  return this;
}