nRF Connect SDK API 2.8.0
|
int nrf_cloud_coap_json_message_send | ( | const char * | message, |
bool | bulk, | ||
bool | confirmable ) |
#include <include/net/nrf_cloud_coap.h>
Send a preencoded JSON message to nRF Cloud.
The JSON message is sent either as a non-confirmable or confirmable CoAP message. Use non-confirmable when sending low priority information for which some data loss is acceptable.
[in] | message | The string to send. |
[in] | bulk | Set true if message is an array of JSON messages to be sent to the bulk topic. |
[in] | confirmable | Select whether to use a CON or NON CoAP transfer. |
-EACCES | Device does not have a valid nRF Cloud CoAP connection. |