withReasonCode method
Sets the reason code of the MqttMessage.
Implementation
MqttPublishCompleteMessage withReasonCode(MqttPublishReasonCode reason) {
variableHeader.reasonCode = reason;
return this;
}
Sets the reason code of the MqttMessage.
MqttPublishCompleteMessage withReasonCode(MqttPublishReasonCode reason) {
variableHeader.reasonCode = reason;
return this;
}