readProtocolVersion method

void readProtocolVersion(
  1. MqttByteBuffer stream
)

Protocol version

Implementation

void readProtocolVersion(MqttByteBuffer stream) {
  protocolVersion = stream.readByte();
  length++;
}