nRF Connect SDK API 2.8.99
|
int nrf_cloud_obj_location_request_create | ( | struct nrf_cloud_obj *const | obj, |
const struct lte_lc_cells_info *const | cells_inf, | ||
const struct wifi_scan_info *const | wifi_inf, | ||
const struct nrf_cloud_location_config *const | config ) |
#include <include/net/nrf_cloud_codec.h>
Create an nRF Cloud Location request message object.
If successful, memory is allocated for the provided object. The nrf_cloud_obj_free function should be called when finished with the object.
[out] | obj | Uninitialzed object to contain the Location message. |
[in] | cells_inf | Cellular network data, can be NULL if wifi_inf is provided. |
[in] | wifi_inf | Wi-Fi network data, can be NULL if cells_inf is provided. |
[in] | config | Optional configuration of request. If NULL, use cloud defaults. |
-EINVAL | Invalid parameter. |
-EDOM | Too few Wi-Fi networks, see NRF_CLOUD_LOCATION_WIFI_AP_CNT_MIN. |
-EBADF | Invalid object type. |
-ENOTEMPTY | Object already initialized. |
-ENOMEM | Out of memory. |
0 | Success; GNSS message created. |