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

◆ aws_iot_init()

int aws_iot_init ( aws_iot_evt_handler_t event_handler)

#include <include/net/aws_iot.h>

Initialize the library.

Note
This API must be called exactly once, and it must return successfully before any other library APIs can be called.
Parameters
[in]event_handlerPointer to an event handler to receive library events.
Return values
0If successful.
-EINVALif an invalid parameter is passed in.