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回答
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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ