@@ -14,18 +14,18 @@ import "constants.dart";
1414/// The default [QoS] values for the different operation types will be used if
1515/// no Quality of Service is defined in the respective form.
1616///
17- /// If no [readTimeout] or [discoveryTimeout] is defined, a [defaultTimeout] of
18- /// 10 seconds will be used. Furthermore, the [keepAlivePeriod] defaults to 20
19- /// seconds.
17+ /// If no [readTimeout] is defined, a [defaultReadTimeout] of
18+ /// 10 seconds will be used.
19+ /// Furthermore, the [keepAlivePeriod] defaults to a [defaultKeepAlivePeriod] of
20+ /// 20 seconds.
2021class MqttConfig {
2122 /// Creates a new [MqttConfig] object.
2223 MqttConfig ({
2324 this .defaultReadQoS = QoS .atMostOnce,
2425 this .defaultWriteQoS = QoS .atMostOnce,
2526 this .defaultActionQoS = QoS .atMostOnce,
2627 this .defaultSubscribeQoS = QoS .atLeastOnce,
27- this .readTimeout = defaultTimeout,
28- this .discoveryTimeout = defaultTimeout,
28+ this .readTimeout = defaultReadTimeout,
2929 this .keepAlivePeriod = defaultKeepAlivePeriod,
3030 });
3131
@@ -50,11 +50,6 @@ class MqttConfig {
5050 /// If no value has been read until the timeout has expired, the operation
5151 /// will be canceled.
5252 final Duration readTimeout;
53-
54- /// Timeout value used for discovery using MQTT.
55- ///
56- /// The discovery process will be aborted once the timeout has expired.
57- final Duration discoveryTimeout;
5853}
5954
6055/// Enum for indicating the default Quality of Service (QoS) that should be used
0 commit comments