![]() |
nRF Connect SDK API 3.3.99
|
| 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.
| [out] | obj | Object to contain timestamp. |
| [in] | time_ms | Timestamp value in milliseconds. UNIX epoch format. |
| -EINVAL | Invalid parameter. |
| -ENOENT | Object is not initialized. |
| -ENOMEM | Out of memory. |
| -ENOTSUP | Action not supported for the object's type. |
| 0 | Success; item added. |