What is the best way to set an IoT Last Will message on greengrass devices?

0

Given that GreenGrass initiates the mqtt session, and best I can tell there is no way to set a last will message prior to it connecting, what is the best method by which to send or set an LWT message for a device?

已提问 1 年前237 查看次数
1 回答
1

Hi,

You cannot configure a will for Greengrass. Why do you want a will to be set? If you'd like to know when Greengrass connects and disconnects you can use IoT lifecycle events for that: https://docs.aws.amazon.com/iot/latest/developerguide/life-cycle-events.html

Cheers,

Michael

AWS
专家
已回答 1 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则