Any json examples sending commands (CLOUD_EVT_DATA_RECEIVED) from nrfcloud terminal to LTE Device (nRF9160 DK)
Any json examples sending commands (CLOUD_EVT_DATA_RECEIVED) from nrfcloud terminal to LTE Device (nRF9160 DK)
Hi.
The closest I have been able to find is this: https://github.com/nRFCloud/application-protocols
However, it seems only to specify how devices talk to nRF Cloud, and not the other way as you are interested in.
After doing some simple testing, I am also not 100% confident that this feature is working as intended at the moment. However, I need to do some more testing and talk to the developers before I can be certain. I'll keep you updated on any progress I make.
Best regards,
Didrik
Hi again, and sorry for the long wait.
I have tested some more and found a bug in the handling of the received data.
I have reported the bug internally and will keep you updated.
Best regards,
Didrik
Thanks
Hi.
This pull request will fix the bug: https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1355/files
(specifically the changes to subsys/net/lib/nrf_cloud/src/nrf_cloud_transport.c:573)
With that fixed, you can send JSON from the "Terminal" card in nRF Cloud to the device. The data is forwarded to the application, but I am still working on finding documentation for what the asset_tracker application does with the data.
Best regards,
Didrik
At the moment, the asset_tracker application only supports a couple of commands, and those only partially.
Also, the format of the commands is still work in progress, and is changing.
Therefore, at the moment, if you want to use the "Terminal" card to send data/commands to the asset_tracker, you should create your own JSON format and commands, instead of using the built in command parsing.