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

◆ aws_jobs_unsubscribe_topic_update()

int aws_jobs_unsubscribe_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 unsubscribe from rejected and accepted to stop receiving feedback from the job execution.

Parameters
[in]clientConnected MQTT client instance.
[in]job_idJob ID of the currently accepted job.
[out]topic_bufBuffer to store the topic in.
Return values
0If successful, otherwise the return code of mqtt_unsubscribe or snprintf.
-EINVALIf the provided input parameters are not valid.