nRF Connect SDK API
3.4.99
Toggle main menu visibility
Loading...
Searching...
No Matches
location_utils.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2021 Nordic Semiconductor ASA
3
*
4
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5
*/
6
7
#ifndef LOCATION_UTILS_H
8
#define LOCATION_UTILS_H
9
10
#include <
modem/location.h
>
11
21
bool
location_utils_is_lte_available
(
void
);
22
31
const
char
*
location_utils_nrf_cloud_jwt_generate
(
void
);
32
37
void
location_utils_systime_to_location_datetime
(
struct
location_datetime
*datetime);
38
46
int
location_utils_event_handler_append
(
location_event_handler_t
handler);
47
55
int
location_utils_event_handler_remove
(
location_event_handler_t
handler);
56
62
void
location_utils_event_dispatch
(
const
struct
location_event_data
*
const
evt);
63
69
bool
location_utils_event_handler_list_is_empty
(
void
);
70
71
#endif
/* LOCATION_UTILS_H */
location_event_handler_t
void(* location_event_handler_t)(const struct location_event_data *event_data)
Event handler prototype.
Definition
location.h:688
location.h
Public APIs for the Location library.
location_utils_event_handler_append
int location_utils_event_handler_append(location_event_handler_t handler)
Add the handler in the event handler list if not already present.
location_utils_event_handler_list_is_empty
bool location_utils_event_handler_list_is_empty(void)
Test if the handler list is empty.
location_utils_nrf_cloud_jwt_generate
const char * location_utils_nrf_cloud_jwt_generate(void)
Generate JWT buffer to be used for nRF Cloud REST API use.
location_utils_event_handler_remove
int location_utils_event_handler_remove(location_event_handler_t handler)
Remove the handler from the event handler list if present.
location_utils_event_dispatch
void location_utils_event_dispatch(const struct location_event_data *const evt)
Dispatch events for the registered event handlers.
location_utils_is_lte_available
bool location_utils_is_lte_available(void)
Check if LTE networking is available.
location_utils_systime_to_location_datetime
void location_utils_systime_to_location_datetime(struct location_datetime *datetime)
Get current system time and fill that into a given location_datetime.
location_datetime
Definition
location.h:153
location_event_data
Definition
location.h:298
lib
location
location_utils.h
Generated on
for nRF Connect SDK API by
1.17.0