#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] | config | Configuration parameters for the library. Optional. |
- Return values
-
0 | If library main function exited on an unrecoverable error or a deferred reboot. |
-EINVAL | If configuration parameters are invalid. See lwm2m_carrier_config_t |
-EFAULT | If library failed due to an internal error. |