![]() |
nRF Connect SDK API 3.3.99
|
| int nrf_cloud_sensor_data_send | ( | const struct nrf_cloud_sensor_data * | param | ) |
#include <include/net/nrf_cloud.h>
Send sensor data reliably.
This API should only be called after receiving an NRF_CLOUD_EVT_READY event. If the API succeeds, you can expect the NRF_CLOUD_EVT_SENSOR_DATA_ACK event for data sent with a valid tag value.
| [in] | param | Sensor data; the data pointed to by param->data.ptr must be a string. |
| 0 | If successful. |
| -EACCES | Cloud connection is not established; wait for NRF_CLOUD_EVT_READY. |