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

◆ lwm2m_carrier_main()

int lwm2m_carrier_main ( const lwm2m_carrier_config_t config)

#include <lib/bin/lwm2m_carrier/include/lwm2m_carrier.h>

LwM2M carrier library main function.

Note
This function is intended to run on a separate thread. The function will only exit on configuration errors and non-recoverable errors.
The library does not copy the contents of pointers in the config parameters. The application has to make sure that the provided parameters are valid throughout the application lifetime (i.e. placed in static memory or in flash).
Parameters
[in]configConfiguration parameters for the library. Optional.
Return values
0If library main function exited on an unrecoverable error or a deferred reboot.
-EINVALIf configuration parameters are invalid. See lwm2m_carrier_config_t
-EFAULTIf library failed due to an internal error.