#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] | list | Pointer to list a of topics. |
[in] | count | Number of entries in the list. |
- Return values
-
0 | If successful. |
-EINVAL | if an invalid parameter is passed in. |