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

◆ azure_iot_hub_init()

int azure_iot_hub_init ( azure_iot_hub_evt_handler_t  event_handler)

#include <include/net/azure_iot_hub.h>

Initialize the module.

Note
This API must be called exactly once, and it must return successfully for subsequent calls to this library to succeed.
Parameters
[in]event_handlerPointer to event handler function.
Return values
0If successful.
-EALREADYif the library has already been initialized and is in a state where it can not be re-initialized.
-EINVALin invalid argument was provided.