MqttClientConstants class

Library wide constants

Constructors

MqttClientConstants()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Properties

defaultKeepAlive int
Default keep alive in seconds
read / write

Constants

defaultMqttPort → const int
The default Mqtt port to connect to.
1883
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, a warning is given in the log if 23 is exceeded. NOte: this is only a warning, it changes no client behaviour.
1024
maxClientIdentifierLengthSpec → const int
Specification length
23
maxMessageSize → const int
The Maximum allowed message size as defined by the MQTT v3 Spec (256MB).
268435455
mqttV31ProtocolName → const String
V3 name
'MQIsdp'
mqttV31ProtocolVersion → const int
Protocol variants V3
3
mqttV311ProtocolName → const String
V4 name
'MQTT'
mqttV311ProtocolVersion → const int
V4
4
protocolsMultipleDefault → const List<String>
The default websocket subprotocol list
const <String>['mqtt', 'mqttv3.1', 'mqttv3.11']
protocolsSingleDefault → const List<String>
The default websocket subprotocol list for brokers who expect this field to be a single entry
const <String>['mqtt']
recommendedMaxUsernamePasswordLength → const int
The recommended length for usernames and passwords.
12