nRF Connect SDK API 0.1.0
|
int nrf_cloud_coap_obj_send | ( | struct nrf_cloud_obj *const | obj, |
bool | confirmable | ||
) |
#include <include/net/nrf_cloud_coap.h>
Send an nRF Cloud object.
This only supports sending of the CoAP CBOR or JSON type objects or a pre-encoded CBOR buffer. If the object is actually an array of JSON objects, it will be sent to the d2c/bulk topic, otherwise all other documents are sent to the d2c topic. See the nrf_cloud_obj_bulk_init() function.
[in] | obj | An nRF Cloud object. Will be encoded first if obj->enc_src is NRF_CLOUD_ENC_SRC_NONE. |
[in] | confirmable | Select whether to use a CON or NON CoAP transfer. |
-EACCES | Device does not have a valid nRF Cloud CoAP connection. |