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.

질문됨 일 년 전218회 조회
1개 답변
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
전문가
답변함 일 년 전

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

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

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

관련 콘텐츠