You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a digital input is not configured as an [interrupt](config/interrupts.md) (or even [sometimes if it is](config/reference/digital_inputs/?id=digital_inputs-star-interrupt_for)), then a loop will be created which polls the pin's current value and publishes a `DigitalInputChangedEvent` event when it does. As part of the initialisation of each pin, a callback function to publish the new value on MQTT will be subscribed to this event.
Copy file name to clipboardExpand all lines: docs/schema.json
+20
Original file line number
Diff line number
Diff line change
@@ -271,6 +271,26 @@
271
271
"default": false
272
272
}
273
273
}
274
+
},
275
+
"reconnect_delay": {
276
+
"meta": {
277
+
"description": "Time in seconds to wait between reconnect attempts.\n",
278
+
"title_id": "mqtt-reconnect_delay"
279
+
},
280
+
"type": "integer",
281
+
"required": false,
282
+
"default": 2,
283
+
"min": 1
284
+
},
285
+
"reconnect_count": {
286
+
"meta": {
287
+
"description": "Max number of retries of connections before giving up and exiting.\n-1 (the default) means infinite reconnects.\nThe counter is reset when the connection is reestablished successfully.\n",
0 commit comments