This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Location API without Cloud Dependencies (GNSS Only)

I am developing a solution using the NRF9160.  The device is successfully reporting to my server using a blend of the Location and HTTPS samples.  I would like to operate under GNSS only (no multicell) but I am unable to disable NRF Cloud or JWT by setting JWT and Cloud configs to No in the .prj file.  Is it possible to disable those services but maintain the Location library?  When the application runs, I still get a warning about inability to connect to AGPS even though I never request AGPS.

I am setting my location config to GNSS only with this,

enum location_method methods[] = {LOCATION_METHOD_GNSS};

Do I need to turn off AGPS anywhere else?  When I test using the GNSS sample I acquire a fix faster than when I use the Location sample with GNSS only, so I think somehow AGPS is still on and timing out.

Thanks!

Parents Reply Children
  • thanks for this. I was able to verify operation on my end as well.  It looks like the key option that I missed in my config was CONFIG_LOCATION_METHOD_CELLULAR=n , I made the mistake of assuming if I didn't call it that the default was n.  Also noticed that I needed to leave in at least REST and JWT to satisfy the library. 

    The rest of my code was the same as yours save for a few small differences from our library versions. 

    Up and running with a successful test! Thanks so much, I now have a PSM warning but I think that's from the long wait.  If I can't run it down I'll start a different ticket.  I'll accept this answer and close out.

Related