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

◆ location_init()

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.

Parameters
[in]handlerEvent handler function.
Returns
0 on success, or negative error code on failure.
Return values
-EINVALGiven event_handler is NULL.
-EFAULTFailed to obtain Wi-Fi interface.