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

◆ nrf_cloud_send()

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.

Parameters
[in]msgPointer to a structure containing data and topic information.
Return values
0If successful.
-EACCESCloud connection is not established; wait for NRF_CLOUD_EVT_READY.
-EIOError; failed to encode data.
Returns
A negative value indicates an error.