Hi. I am currently evaluating nrf9160 on a Thingy 91 board and have the environment for the asset_tracker application up and running.
I want to be able to handle JSON messages sent _from_ the cloud (using the NRF cloud portal to start with) but I can't find any examples of this. Do you know where I can find an example or guide for this? Thanks in advance!
If you are using the asset_tracker application, you receive downlink data in the CLOUD_EVT_DATA_RECEIVED event in the cloud_event_handler function in main.c.
Note that there is a bug in version 1.1 that must be fixed for you to be able to receive the data. You can find the fix in this pull request: https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1355/files#diff-71f7a1e3a52c8b609c0dc7cafa716b14L573
I merged in the bug fix and it seems to be working. Thank you!