Add MQTT reconnect, keep-alive and connect timeout options
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
8dd42d24bc
commit
e22b2038d0
2 files changed
+13
-1
No files matched your search
+4
-1
@@ -8,7 +8,10 @@
|
||||
"UseTls": false,
|
||||
"BaseTopic": "frames",
|
||||
"PublishQos": 1,
|
||||
"RetryBackoffSeconds": [1, 2, 5, 15, 60]
|
||||
"RetryBackoffSeconds": [1, 2, 5, 15, 60],
|
||||
"ReconnectBackoffSeconds": [1, 2, 5, 15, 30],
|
||||
"KeepAliveSeconds": 15,
|
||||
"ConnectTimeoutSeconds": 10
|
||||
},
|
||||
"ApiKey": "change-me",
|
||||
"Storage": {
|
||||
|
||||
@@ -32,4 +32,13 @@ public sealed class MqttOptions
|
||||
|
||||
[MinLength(1)]
|
||||
public int[] RetryBackoffSeconds { get; set; } = Array.Empty<int>();
|
||||
|
||||
[MinLength(1)]
|
||||
public int[] ReconnectBackoffSeconds { get; set; } = [1, 2, 5, 15, 30];
|
||||
|
||||
[Range(1, 3600)]
|
||||
public int KeepAliveSeconds { get; set; } = 15;
|
||||
|
||||
[Range(1, 300)]
|
||||
public int ConnectTimeoutSeconds { get; set; } = 10;
|
||||
}
|
||||
Reference in new issue
Block a user