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

demandé il y a un an314 vues
1 réponse
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
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions