nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ nrf_cloud_sensor_data_send()

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.

Parameters
[in]paramSensor data; the data pointed to by param->data.ptr must be a string.
Return values
0If successful.
-EACCESCloud connection is not established; wait for NRF_CLOUD_EVT_READY.
Returns
A negative value indicates an error.