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

◆ aws_iot_application_topics_set()

int aws_iot_application_topics_set ( const struct mqtt_topic *const  list,
size_t  count 
)

#include <include/net/aws_iot.h>

Pass in a list of application specific topics that will be subscribed to upon connection to the AWS IoT broker. The number of application specific topics that the library can subscribe to is limited to 8.

Note
This function passes a reference to topics that are defined in the application. Therefore it is important that the memory of the passed in topic list is valid when aws_iot_connect() is called.
Parameters
[in]listPointer to list a of topics.
[in]countNumber of entries in the list.
Return values
0If successful.
-EINVALif an invalid parameter is passed in.