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

◆ nrf_cloud_location_process()

int nrf_cloud_location_process ( const char *  buf,
struct nrf_cloud_location_result result 
)

#include <include/net/nrf_cloud_location.h>

Process location data received from nRF Cloud over MQTT or REST.

Parameters
bufData received from nRF Cloud.
resultParsed results.
Return values
0If processed successfully and location found.
1If processed successfully but no location data found. This indicates that the data is not a location response.
-EFAULTAn nRF Cloud error code was processed.
Returns
A negative value indicates an error.