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.

已提问 1 年前314 查看次数
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
已回答 1 年前
profile picture
专家
已审核 1 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则