Republish device status on shadow topics

0

We have devices already sending status information ( firmware version, wifi connection status, etc) on custom topic. At this point, We do not want to change our device firmware to directly send updates to device shadow but still want to utilize Fleet Hub for monitoring. In this case, Can we use rule engine and lambda function to receive status info from custom topic Convert into shadow document and republish it to device shadow topic ?

已提问 1 年前260 查看次数
1 回答
0
已接受的回答

Hi, Yes, you can do the transformation via IoT Rule directly. The IoT Rule SQL could look like this:

SELECT { "state": { "reported": { "firwmare": firmware  , "wifi-connection-status": connection} } } FROM 'custom/topic'

Where firmware and connection have to be replaced with your key-value from your topic

Then you can use the republish action to send it to the shadow.

profile pictureAWS
brnaba
已回答 1 年前

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

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

回答问题的准则