withReasonCode method
Sets the reason code of the message.
Implementation
MqttDisconnectMessage withReasonCode(MqttDisconnectReasonCode reasonCode) {
variableHeader!.reasonCode = reasonCode;
return this;
}
Sets the reason code of the message.
MqttDisconnectMessage withReasonCode(MqttDisconnectReasonCode reasonCode) {
variableHeader!.reasonCode = reasonCode;
return this;
}