This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Reading GPS power options problem?

Hello, 

I have a problem of reading GPS options for "NRF_SO_GNSS_POWER_SAVE_MODE" 

This is the code:

retval = nrf_getsockopt(gnss_fd, NRF_SOL_GNSS, NRF_SO_GNSS_POWER_SAVE_MODE, &psm, &psm_len);
if (retval != 0) {
	printk("Failed to send AGNSS data, type:(err: %d)\n", errno);
	return -1;
}

I always get -1, and errno value 22. This function works for "NRF_SO_GNSS_FIX_INTERVAL" option. 

Can you look into it? 

Thank you.

Parents Reply Children
No Data
Related