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