Refactor notification system to use HTTP POST for buzz events, updating configuration and documentation accordingly.

This commit is contained in:
2026-10-19 15:28:48 -05:00
parent 63d9995f59
commit 753a62beca
10 changed files with 183 additions and 149 deletions
+3 -4
View File
@@ -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);