Using IoT Rules with IoT Jobs topics.

0

Is there any way to access the data sent on the $aws/things/thingName/jobs/jobId/update topic through an IoT rule.? I know these messages don't go through the broker but I would like to be able to see the information provided in the statusDetails section of the JobExecutionState. If this isn't possible, what is the intended way to access the JobExecutionState provided on that topic? Thanks.

질문됨 일 년 전313회 조회
1개 답변
2
수락된 답변

One of the possible solution is to make use of "DescribeJobExecution"[1] API call to get JobExecutionState. However as per your use case you want to access the data sent on $aws/things/thingName/jobs/jobId/update through an IoT rule for that first I would like to mention that unfortunately, there is no way to monitor job progress via job reserved topics from other than the device executing job. Having said that, I would recommend as a workaround you publish job status to an additional non-reserved topic by modifying job agent as a result your device will publish to reserved and non-reserved topic simultaneously and create a rule which will be triggered by this non-reserved topic.

[1] https://docs.aws.amazon.com/iot/latest/developerguide/manage-job-cli.html#describe-job-execution

AWS
답변함 일 년 전
profile picture
전문가
검토됨 한 달 전

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

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

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