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.

demandé il y a un an313 vues
1 réponse
2
Réponse acceptée

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
répondu il y a un an
profile picture
EXPERT
vérifié il y a un mois

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