withProtocolVersion method
Sets the protocol version.
Implementation
MqttConnectMessage withProtocolVersion(int protocolVersion) {
variableHeader!.protocolVersion = protocolVersion;
Protocol.version = protocolVersion;
return this;
}
Sets the protocol version.
MqttConnectMessage withProtocolVersion(int protocolVersion) {
variableHeader!.protocolVersion = protocolVersion;
Protocol.version = protocolVersion;
return this;
}