#include <include/net/nrf_cloud_rest.h>
Send the device status to nRF Cloud as a device message. In addition to standard message storage, the data will also be stored in the device's shadow.
- Parameters
-
[in,out] | rest_ctx | Context for communicating with nRF Cloud's REST API. |
[in] | device_id | Null-terminated, unique device ID registered with nRF Cloud. |
[in] | dev_status | Device status to be encoded in the message. |
[in] | timestamp_ms | UNIX timestamp, in milliseconds, to be included in the message. |
- Return values
-
0 | If successful. Otherwise, a (negative) error code is returned. See "nRF Cloud: Request Failure" for details. |