17 lines
467 B
C
17 lines
467 B
C
#pragma once
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include "esp_err.h"
|
|
|
|
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 + event POST task
|
|
bool notifier_send(uint32_t delay_ms); // queue one duration event; non-blocking
|
|
void notifier_get_stats(notifier_stats_t *out);
|