withReasonCode method

Sets the reason code of the MqttMessage.

Implementation

MqttPublishCompleteMessage withReasonCode(MqttPublishReasonCode reason) {
  variableHeader.reasonCode = reason;
  return this;
}