Refactor notification system to use HTTP POST for buzz events, updating configuration and documentation accordingly.
This commit is contained in:
+3
-4
@@ -3,15 +3,14 @@
|
||||
#include <stdint.h>
|
||||
#include "esp_err.h"
|
||||
|
||||
typedef enum { NOTIF_ALERT = 0, NOTIF_TEST } notif_kind_t;
|
||||
|
||||
typedef struct {
|
||||
bool wifi_connected;
|
||||
char ip[16];
|
||||
uint32_t sent_ok, sent_failed, dropped;
|
||||
bool wifi_configured;
|
||||
bool endpoint_configured;
|
||||
} notifier_stats_t;
|
||||
|
||||
esp_err_t notifier_init(void); // Wi-Fi + network task
|
||||
bool notifier_send(notif_kind_t kind, const char *msg); // non-blocking enqueue, false if queue full
|
||||
esp_err_t notifier_init(void); // Wi-Fi + event POST task
|
||||
bool notifier_send(uint32_t delay_ms); // queue one duration event; non-blocking
|
||||
void notifier_get_stats(notifier_stats_t *out);
|
||||
|
||||
Reference in New Issue
Block a user