nRF Connect SDK API 2.8.99
|
int aws_jobs_subscribe_topic_update | ( | struct mqtt_client *const | client, |
const uint8_t * | job_id, | ||
uint8_t * | topic_buf ) |
#include <include/net/aws_jobs.h>
Construct the update topic for a job ID and subscribe to rejected and accepted to receive feedback when submitting a job execution update.
[in] | client | Connected MQTT client instance. |
[in] | job_id | Job ID of the currently accepted job. |
[out] | topic_buf | Buffer to store the topic in. |
0 | If successful, otherwise the return code of mqtt_subscribe or snprintf. |
-EINVAL | If the provided input parameters are not valid. |