writeTo method

  1. @override
void writeTo(
  1. MqttByteBuffer variableHeaderStream
)
override

Writes the variable header for an MQTT Connect message to the supplied stream.

Implementation

@override
void writeTo(MqttByteBuffer variableHeaderStream) {
  // Unused additional 'compression' byte used within the variable
  // header acknowledgement.
  variableHeaderStream.writeByte(0);
  writeReturnCode(variableHeaderStream);
}