How to identify update author in Device Shadow

0

I am facing a problem where I need to somehow include the last update author in the Device Shadow state document. For example, we have a remote console and a device which communicate the device's state through device shadow. On each update to the device shadow I would like to include an author field, to identify whether the console or the device authored the update.

I am interested in adding this author field in the Device Shadow metadata section. However I cannot find any documentation or examples online on customizing the metadata section. Can this be done? If not, what are some other ways I could include the author information in the state document.

posta un anno fa207 visualizzazioni
1 Risposta
0

Hi, the normal use of device shadows is that the device writes the updates in the reported section of the device shadow, while applications write updates in the desired section of the device shadow. If your solution can follow this pattern, eg the console is the application, then you can track if the device or the console updated the shadow document and when. If this pattern cannot be followed, you can add a field in the device shadow reported section to be populated by the writer. Finally, depending on which use you make of this information, all operations on shadow documents are logged in CloudWatch logs together with the information indicating what performed the update.

Cheers,

Massimiliano

AWS
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande