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

◆ nrf_cloud_agnss_process()

int nrf_cloud_agnss_process ( const char *  buf,
size_t  buf_len 
)

#include <include/net/nrf_cloud_agnss.h>

Processes binary A-GNSS data received from nRF Cloud.

Parameters
bufPointer to data received from nRF Cloud.
buf_lenBuffer size of data to be processed.
Return values
0A-GNSS data successfully processed.
-EFAULTAn nRF Cloud A-GNSS error code was processed.
-ENOMSGNo nRF Cloud A-GNSS error code found, invalid error code or wrong app_id/msg_type.
-EINVALbuf was NULL or buf_len was zero.
-EBADMSGNon-JSON payload is not in the A-GNSS format.
Returns
A negative value indicates an error.