readFrom method
Reads the connect flags from the underlying stream.
Implementation
void readFrom(MqttByteBuffer stream) {
final connectFlagsByte = stream.readByte();
reserved1 = (connectFlagsByte & 1) == 1;
cleanStart = (connectFlagsByte & 2) == 2;
willFlag = (connectFlagsByte & 4) == 4;
willQos = MqttUtilities.getQosLevel((connectFlagsByte >> 3) & 3);
willRetain = (connectFlagsByte & 32) == 32;
passwordFlag = (connectFlagsByte & 64) == 64;
usernameFlag = (connectFlagsByte & 128) == 128;
}