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

◆ aws_jobs_update_job_execution()

int aws_jobs_update_job_execution ( struct mqtt_client *const  client,
const uint8_t *  job_id,
enum execution_status  status,
const uint8_t *  status_details,
int  expected_version,
const uint8_t *  client_token,
uint8_t *  topic_buf 
)

#include <include/net/aws_jobs.h>

AWS Jobs update job execution status function.

This implements the minimal requirements for running an AWS job. Only updating status and status details is supported.

Parameters
[in]clientInitialized and connected MQTT Client instance.
[in]job_idThe ID of the job which you are updating.
[in]statusThe job execution status.
[in]status_detailsJSON object in string format containing additional information. Max 10 fields. Can be NULL.
[in]expected_versionThe expected job document version. Must be incremented by 1 for every update.
[in]client_tokenThis can be an arbitrary value and will be reflected in the response to the update.
[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.
-EINVALIf the provided input parameters are not valid.