nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ aws_jobs_get_job_execution()

int aws_jobs_get_job_execution ( struct mqtt_client *const  client,
const char *  job_id,
uint8_t *  topic_buf 
)

#include <include/net/aws_jobs.h>

AWS Jobs get job execution.

This implements fetching a job from the queue in AWS.

Parameters
[in]clientInitialized and connected MQTT Client instance.
[in]job_idThe ID of the job you are fetching use "$next" for fetching the next IN_PROGRESS. or QUEUED job. It will fetch the first created job if multiple exists.
[out]topic_bufBuffer to store the topic in.
Return values
0If the update is published successfully, otherwise return mqtt_publish error code or the error code of snprintf.