![]() |
nRF Connect SDK API 3.2.99
|
| int nrf_cloud_rest_alert_send | ( | struct nrf_cloud_rest_context *const | rest_ctx, |
| const char *const | device_id, | ||
| enum nrf_cloud_alert_type | type, | ||
| float | value, | ||
| const char * | description ) |
#include <include/net/nrf_cloud_alert.h>
Transmit the specified alert to nRF Cloud using REST.
| [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] | type | The type of alert. |
| [in] | value | Optional numeric value associated with the alert. If set to NRF_CLOUD_ALERT_UNUSED_VALUE, the library will not send this field to nRF Cloud. |
| [in] | description | Optional text describing the alert. |