iotblackbelt / node-red-contrib-azure-iot-device

Azure IoT Device node for Node-Red
MIT License
21 stars 18 forks source link

MQTT message buffering during temporary internet connection loss (duplicate messages) #10

Closed dkby closed 3 years ago

dkby commented 3 years ago

Setting: Using the node on Weidmueller u-controll web device (node red v1.1.2) . Provisioning with DPS (CA based x509).

Telemetry messages are not buffered when connection is temporally down when amqp is chosen. However, when using mqtt, messages are buffered for 300s. After that, the node stops with an error.

During this 300s interval, duplicated messages are generated: For every 15s of downtime, the message is sent out one time. So if, e.g., triggering a message while the device is offline, waiting 60s and reconnecting again, the very same message will be received 4 times by iot hub.

iotblackbelt commented 3 years ago

Duplicate.

mikami-robot commented 3 years ago

This case, Ver0.2.3 also has a problem.