writeTo method
Writes the variable header to the supplied stream.
Implementation
@override
void writeTo(MqttByteBuffer variableHeaderStream) {
writeProtocolName(variableHeaderStream);
writeProtocolVersion(variableHeaderStream);
writeConnectFlags(variableHeaderStream);
writeKeepAlive(variableHeaderStream);
}