briggySmalls / detectordag

Power outage detector made with ♥ by a dag
MIT License
0 stars 0 forks source link

Use LWT to set visibility #65

Closed briggySmalls closed 3 years ago

briggySmalls commented 3 years ago

MQTT has the concept of a last will and testament (LWT) that is sent if it is disconnected unexpectedly. This is often used to set an online/offline status. There is a weird bug with AWS IoT that means that the device shadow service doesn’t listen for these messages so you need to make a rule to listen for this and re raise it

briggySmalls commented 3 years ago

See https://github.com/aws/aws-iot-device-sdk-embedded-C/issues/170

briggySmalls commented 3 years ago

We fixed this now with lifecycle events instead in c9c9221c4f22e07aa03344290e1c5c5b82aa4f92