NubeIO / driver-bacnet

0 stars 2 forks source link

MQTT retry (how to handle if broker is offline) #25

Closed NubeDev closed 1 year ago

NubeDev commented 1 year ago

also is there any retry on sending the MQTT message to the broker

eg, a value changes on the BACnet-server and you try to send the broker a message will you retry on fail (eg mqtt-broker is offline)

shomaglasang commented 1 year ago

@NubeDev mate, i'll add the retry up to 5 times (default). retry_interval 10secs (default). these values can be configured in the yaml file

shomaglasang commented 1 year ago

@NubeDev This is included in v0.0.23. Please add the following 3 key/value pairs under mqtt section in yaml config.

mqtt:
  --
  retry_enable: true
  retry_limit: 5
  retry_interval: 10