This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
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

AGPS and AWS working together

Hi everyone,

I am working on a project, currently developing on the nrf9160-dk board. And I want to enable AWS and AGPS together in my project. And once I've enabled them both in the prj.conf, I've got an error about multiple definitions of connection_poll_thread. This thread seems to appear in the following files: aws_iot.c, azure_iot_hub.c and nrf_cloud.c. Obviously since my code uses both nrf_cloud and aws_iot, I get a collision. I was able to work around this for now by modifying the name of aws_iot thread to something else. But I was think that you might have a better solution?

Best Regards,

Aleksa

  • Hi,

    You could probably do it that way, or manually poll one of the cloud connections.

    However, rather than connecting to two different clouds, I would just connect to one of them, and have the two clouds talk to each other.

    So rather than sending the AGPS request directly to nRF Cloud, I would send it to your own cloud. Your cloud can then send the request to nRF Cloud, acting as a proxy for your device.

    This was recently implemented in our asset_tracker_v2 sample application: https://github.com/nrfconnect/sdk-nrf/pull/5097

    You can also read more about the available APIs in nRF Cloud, and how to use them in the nRF Cloud documentation.

    Best regards,

    Didrik

Related