withReasonCode method

Sets the reason code of the MqttMessage.

Implementation

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