Process job documents
When you create an OTA task, the jobs handler runs the following steps on your device. When an update is available, it requests the job document over MQTT.
-
Subscribes to the MQTT notification topics.
-
Calls the StartNextPendingJobExecution API for pending jobs.
-
Receives available job documents.
-
Processes updates based on your specified timeouts.
Using the jobs handler, the application can determine whether to take action immediately or wait until a specified timeout period.