MqttConfig class
Allows for configuring the behavior of MQTT clients and servers.
The default QoS values for the different operation types will be used if no Quality of Service is defined in the respective form.
If no readTimeout is defined, a defaultReadTimeout
of
10 seconds will be used.
Furthermore, the keepAlivePeriod defaults to a defaultKeepAlivePeriod
of
20 seconds.
Constructors
- MqttConfig({QoS defaultReadQoS = QoS.atMostOnce, QoS defaultWriteQoS = QoS.atMostOnce, QoS defaultActionQoS = QoS.atMostOnce, QoS defaultSubscribeQoS = QoS.atLeastOnce, Duration readTimeout = defaultReadTimeout, int keepAlivePeriod = defaultKeepAlivePeriod})
- Creates a new MqttConfig object.
Properties
- defaultActionQoS → QoS
-
Default Quality of Service for
invokeaction
operations.final - defaultReadQoS → QoS
-
Default Quality of Service for
readproperty
operations.final - defaultSubscribeQoS → QoS
-
Default Quality of Service for
observeproperty
andsubscribeevent
operations.final - defaultWriteQoS → QoS
-
Default Quality of Service for
writeproperty
operations.final - hashCode → int
-
The hash code for this object.
no setterinherited
- keepAlivePeriod → int
-
Duration MQTT connections are kept alive in seconds.
final
- readTimeout → Duration
-
Timeout value used for
readproperty
operations.final - 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