![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_cloud_send | ( | const struct nrf_cloud_tx_data * | msg | ) |
#include <include/net/nrf_cloud.h>
Send data to nRF Cloud.
This API is used for sending data to nRF Cloud.
| [in] | msg | Pointer to a structure containing data and topic information. |
| 0 | If successful. |
| -EACCES | Cloud connection is not established; wait for NRF_CLOUD_EVT_READY. |
| -EIO | Error; failed to encode data. |