nRF Connect SDK API 0.1.0
|
int location_init | ( | location_event_handler_t | handler | ) |
#include <include/modem/location.h>
Initializes the library.
Initializes the library and sets the event handler function. The first call to this function must be called before going to LTE normal mode. This can be called multiple times, which sets the event handler again.
[in] | handler | Event handler function. |
-EINVAL | Given event_handler is NULL. |
-EFAULT | Failed to obtain Wi-Fi interface. |