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

◆ aws_jobs_create_topic_get()

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

#include <include/net/aws_jobs.h>

Construct the get topic for a job ID.

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.
-EINVALIf the provided input parameter is not valid.
-ENOMEMIf cannot fit in the buffer, which is assumed to be AWS_JOBS_TOPIC_MAX_LEN in size.