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 ?

질문됨 일 년 전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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인