nRF Connect SDK API 0.1.0
|
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.
[in] | client | Initialized and connected MQTT Client instance. |
[in] | job_id | The ID of the job which you are updating. |
[in] | status | The job execution status. |
[in] | status_details | JSON object in string format containing additional information. Max 10 fields. Can be NULL. |
[in] | expected_version | The expected job document version. Must be incremented by 1 for every update. |
[in] | client_token | This can be an arbitrary value and will be reflected in the response to the update. |
[out] | topic_buf | Buffer to store the topic in. |
0 | If the update is published successfully, otherwise return mqtt_publish error code or the error code of snprintf. |
-EINVAL | If the provided input parameters are not valid. |