0 | If successful. If result is NULL and the A-GNSS data is larger than the fragment size specified by rest_ctx->fragment_size, a positive value is returned, which indicates the size (in bytes) of the necessary result buffer. Otherwise, a (negative) error code is returned:
- -EINVAL will be returned, and an error message printed, if invalid parameters are given.
- -ENOENT will be returned if there was no A-GNSS data requested for the specified request type.
- -ENOBUFS will be returned, and an error message printed, if there is not enough buffer space to store retrieved AGNSS data.
- See "nRF Cloud: Request Failure" for all other possible error codes.
|