aws iot device shadow

0

There was a Topic and Payload that communicated with AWS IoT using MQTT. For example, Topic : 'test/payload' , Payload : '{"data1":"value1", "data2":"value2"}' I want to use AWS IoT Device Shadow. Are you unable to use Topic and Payload in the past? Should I use a Topic that fits Device Shadow? Looking at the description $aws/things/THING_NAME/shadow/update: Used to update the state of the device shadow. $aws/things/THING_NAME/shadow/get: Used to query the current state of device shadows. $aws/things/THING_NAME/shadow/delete: Used to delete device shadows. It is described as above. Do I need to change the Topic and Payload to match the device shadow? Otherwise, keep the Topic and Payload that were used Do I need to add Device Shadow Topic, Payload? thank you

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

Hi,

when you want to use the AWS IoT Device Shadow service you must use the shadow topics and follow the message structure from the device shadow.

To publish to the shadow topics you can either interact directly with them or you can try to use a rule to republish from your original topic to the shadow topic and transform the message accordingly.

Would be also good to know what your use-case is for device shadows.

Cheers,
Philipp

AWS
专家
已回答 1 年前

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

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

回答问题的准则