MqttClientConstants class

Library wide constants

Constructors

MqttClientConstants()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

defaultKeepAlive int
Default keep alive in seconds. The default of 0 disables keep alive.
getter/setter pair

Constants

defaultMqttPort → const int
The default Mqtt port to connect to.
maxClientIdentifierLength → const int
The Maximum allowed client identifier length as specified by the 3.1 specification is 23 characters, however we allow more than this as this was relaxed in the 3.1.1 specification and most brokers now support lengths greater than 23 characters.
maxMessageSize → const int
The Maximum allowed message size as defined by the MQTT v3 Spec (256MB).
mqttV31ProtocolName → const String
V3 name
mqttV31ProtocolVersion → const int
Protocol variants V3
mqttV311ProtocolName → const String
V4 name
mqttV311ProtocolVersion → const int
V4
protocolsMultipleDefault → const List<String>
The default websocket subprotocol list
protocolsSingleDefault → const List<String>
The default websocket subprotocol list for brokers who expect this field to be a single entry
recommendedMaxUsernamePasswordLength → const int
The recommended length for usernames and passwords.