MqttConstants class

Library wide constants

Constructors

MqttConstants()

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
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, a warning is given in the log if 23 is exceeded. NOte: this is only a warning, it changes no client behaviour.
maxClientIdentifierLengthSpec → const int
Specification length
maxMessageSize → const int
The Maximum allowed message size as defined by the MQTT v3 Spec (256MB).
mqttProtocolName → const String
V4 name
mqttProtocolVersion → 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.