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.

posta un anno fa313 visualizzazioni
1 Risposta
2
Risposta accettata

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
con risposta un anno fa
profile picture
ESPERTO
verificato un mese 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