7#ifndef NRF_CLOUD_ALERT_H_
8#define NRF_CLOUD_ALERT_H_
14#include <zephyr/kernel.h>
24#define NRF_CLOUD_ALERT_UNUSED_VALUE NAN
81#if defined(CONFIG_NRF_CLOUD_ALERT) || defined(__DOXYGEN__)
85 const char *description)
104#if defined(CONFIG_NRF_CLOUD_ALERT) || defined(__DOXYGEN__)
106 const char *
const device_id,
109 const char *description);
112 const char *
const device_id,
115 const char *description)
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)
Transmit the specified alert to nRF Cloud using REST.
int nrf_cloud_alert_send(enum nrf_cloud_alert_type type, float value, const char *description)
Transmit the specified alert to nRF Cloud using MQTT or CoAP.
void nrf_cloud_alert_control_set(bool alerts_enable)
Enable or disable use of alerts.
bool nrf_cloud_alert_control_get(void)
Find out if alerts are enabled.
nrf_cloud_alert_type
Alert type.
Definition nrf_cloud_alert.h:31
@ ALERT_TYPE_TEMPERATURE
Definition nrf_cloud_alert.h:43
@ ALERT_TYPE_DEVICE_GOING_OFFLINE
Definition nrf_cloud_alert.h:39
@ ALERT_TYPE_CUSTOM
Definition nrf_cloud_alert.h:51
@ ALERT_TYPE_HUMIDITY
Definition nrf_cloud_alert.h:45
@ ALERT_TYPE_NONE
Definition nrf_cloud_alert.h:33
@ ALERT_TYPE_MSG
Definition nrf_cloud_alert.h:41
@ ALERT_TYPE_DEVICE_NOW_ONLINE
Definition nrf_cloud_alert.h:35
@ ALERT_TYPE_BATTERY
Definition nrf_cloud_alert.h:47
@ ALERT_TYPE_DEVICE_NOW_ONLINE_WDT
Definition nrf_cloud_alert.h:37
@ ALERT_TYPE_SHOCK
Definition nrf_cloud_alert.h:49
float value
Definition nrf_cloud_alert.h:59
unsigned int sequence
Definition nrf_cloud_alert.h:63
const char * description
Definition nrf_cloud_alert.h:61
int64_t ts_ms
Definition nrf_cloud_alert.h:67
enum nrf_cloud_alert_type type
Definition nrf_cloud_alert.h:57
Alert data.
Definition nrf_cloud_alert.h:55
Parameters and data for using the nRF Cloud REST API.
Definition nrf_cloud_rest.h:58