@@ -14,18 +14,18 @@ import "constants.dart";
14
14
/// The default [QoS] values for the different operation types will be used if
15
15
/// no Quality of Service is defined in the respective form.
16
16
///
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.
20
21
class MqttConfig {
21
22
/// Creates a new [MqttConfig] object.
22
23
MqttConfig ({
23
24
this .defaultReadQoS = QoS .atMostOnce,
24
25
this .defaultWriteQoS = QoS .atMostOnce,
25
26
this .defaultActionQoS = QoS .atMostOnce,
26
27
this .defaultSubscribeQoS = QoS .atLeastOnce,
27
- this .readTimeout = defaultTimeout,
28
- this .discoveryTimeout = defaultTimeout,
28
+ this .readTimeout = defaultReadTimeout,
29
29
this .keepAlivePeriod = defaultKeepAlivePeriod,
30
30
});
31
31
@@ -50,11 +50,6 @@ class MqttConfig {
50
50
/// If no value has been read until the timeout has expired, the operation
51
51
/// will be canceled.
52
52
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;
58
53
}
59
54
60
55
/// Enum for indicating the default Quality of Service (QoS) that should be used
0 commit comments