nRF Connect SDK API 0.1.0
|
int nrf_cloud_coap_location_send | ( | const struct nrf_cloud_gnss_data *const | gnss, |
bool | confirmable | ||
) |
#include <include/net/nrf_cloud_coap.h>
Send the device location in the nrf_cloud_gnss_data PVT field to nRF Cloud.
The location message is sent as either a non-confirmable or confirmable CoAP message. Only NRF_CLOUD_GNSS_TYPE_PVT is supported.
[in] | gnss | A pointer to an nrf_cloud_gnss_data struct indicating the device location, usually as determined by the GNSS unit. |
[in] | confirmable | Select whether to use a CON or NON CoAP transfer. |
-EACCES | Device does not have a valid nRF Cloud CoAP connection. |