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.

preguntada hace un año313 visualizaciones
1 Respuesta
2
Respuesta aceptada

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
respondido hace un año
profile picture
EXPERTO
revisado hace un mes

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas