readProtocolName method

void readProtocolName (
  1. MqttByteBuffer stream
)

Read functions Protocol name

Implementation

/// Protocol name
void readProtocolName(MqttByteBuffer stream) {
  protocolName = MqttByteBuffer.readMqttString(stream);
  length += protocolName.length + 2; // 2 for length short at front of string
}