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

◆ nrf_cloud_obj_ts_add()

int nrf_cloud_obj_ts_add ( struct nrf_cloud_obj *const  obj,
const int64_t  time_ms 
)

#include <include/net/nrf_cloud_codec.h>

Add a timestamp to an object.

Parameters
[out]objObject to contain timestamp.
[in]time_msTimestamp value in milliseconds. UNIX epoch format.
Return values
-EINVALInvalid parameter.
-ENOENTObject is not initialized.
-ENOMEMOut of memory.
-ENOTSUPAction not supported for the object's type.
0Success; item added.