Republish device status on shadow topics


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 Answer
Accepted Answer

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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions