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

◆ nrf_cloud_obj_location_request_create()

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.

Parameters
[out]objUninitialzed object to contain the Location message.
[in]cells_infCellular network data, can be NULL if wifi_inf is provided.
[in]wifi_infWi-Fi network data, can be NULL if cells_inf is provided.
[in]configOptional configuration of request. If NULL, use cloud defaults.
Return values
-EINVALInvalid parameter.
-EDOMToo few Wi-Fi networks, see NRF_CLOUD_LOCATION_WIFI_AP_CNT_MIN.
-EBADFInvalid object type.
-ENOTEMPTYObject already initialized.
-ENOMEMOut of memory.
0Success; GNSS message created.