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

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

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

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

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