withReturnCode method

MqttConnectAckMessage withReturnCode(
  1. MqttConnectReturnCode returnCode
)

Sets the return code of the Variable Header.

Implementation

MqttConnectAckMessage withReturnCode(MqttConnectReturnCode returnCode) {
  variableHeader.returnCode = returnCode;
  return this;
}