Hi,
I have an application that I have built on the Cloud_client example, and I have a question about the data that is received when the nRF9160 first connects to the cloud. I understand publishing data to the cloud, and I have been able to retrieve messages through HTTPie, but I have not found documentation on the data that is received by the nRF9160DK once it is paired with nRF cloud.
In the cloud_client example, once the device connects to the cloud, a CLOUD_EVT_DATA_RECEIVED event occurs, and it prints out the following for me:
{"desired":
{"pairing":
{"state":
"paired",
"topics":
{"d2c":"prod/318e3ece-4317-46a6-adc0-ab4e06f69556/m/d/nrf-352656100371429/d2c","c2d":"prod/318e3ece-4317-46a6-adc0-ab4e06f69556/m/d/nrf-352656100371429/c2d"}},
"nrfcloud_mqtt_topic_prefix":"prod/318e3ece-4317-46a6-adc0-ab4e06f69556/"},
config":{"GPS":{"enable":true}}}
I am very new with working with cloud data/HTTP, and it looks to me like this message is sent to the device after connecting, and it has some configuration options in it (The "GPS enable"). I would like to be able to change that configuration, but I am having trouble navigating to it. Where would I find information on how to modify this?
Here is an example of how I am accessing stored messages as well using HTTPie:
http api.nrfcloud.com/.../messages Authorization:"Bearer f25fc5[rest of authorization]" inclusiveStart==2018-01-01T00:00:00.000Z exclusiveEnd==2099-01-01T00:00:00.000Z topics=="prod/318e3ece-4317-46a6-adc0-ab4e06f69556/m/d/nrf-352656100371429/d2c"