Add global event group handle for connectivity

This commit is contained in:
2025-12-01 00:53:12 +01:00
parent c6c4011a47
commit 6fd2d2523d
4 changed files with 18 additions and 17 deletions
+9 -5
View File
@@ -1,9 +1,13 @@
#ifdef __cplusplus
extern "C" {
#endif
#ifndef MAIN_HPP
#define MAIN_HPP
#include "freertos/FreeRTOS.h"
#include "freertos/event_groups.h"
extern volatile bool criticalErrorFlag;
extern EventGroupHandle_t connectivity_event_group;
#define WIFI_CONNECTED_BIT BIT0
#define MQTT_CONNECTED_BIT BIT1
#ifdef __cplusplus
}
#endif