withProtocolName method

MqttConnectMessage withProtocolName(
  1. String protocolName
)

Sets the name of the protocol to use.

Implementation

MqttConnectMessage withProtocolName(String protocolName) {
  variableHeader!.protocolName = protocolName;
  Protocol.name = protocolName;
  return this;
}