MqttConnectAckMessage constructor

MqttConnectAckMessage()

Initializes a new instance of the MqttConnectAckMessage class. Only called via the MqttMessage.Create operation during processing of an Mqtt message stream.

Implementation

MqttConnectAckMessage() {
  header = MqttHeader().asType(MqttMessageType.connectAck);
  variableHeader = MqttConnectAckVariableHeader();
  variableHeader.returnCode = MqttConnectReturnCode.connectionAccepted;
}