#include <include/net/nrf_cloud_coap.h>
Send raw bytes to nRF Cloud on the /msg/d2c/raw topic. The data sent can be for any purpose.
- Parameters
-
[in] | buf | buffer with binary string. |
[in] | buf_len | length of buf in bytes. |
[in] | confirmable | Select whether to use a CON or NON CoAP transfer. |
- Return values
-
-EACCES | Device does not have a valid nRF Cloud CoAP connection. |
- Returns
- 0 If successful, nonzero if failed. Negative values are device-side errors defined in errno.h. Positive values are cloud-side errors (CoAP result codes) defined in zephyr/net/coap.h.