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
+3 -2
View File
@@ -9,8 +9,7 @@
#define WATCHDOG_KEEPALIVE_MS 8000
extern EventGroupHandle_t connectivity_event_group;
extern EventBits_t bits = xEventGroupGetBits(connectivity_event_group);
EventGroupHandle_t connectivity_event_group;
static const char* TAG = "MAIN";
@@ -49,6 +48,8 @@ extern "C" void app_main(void)
};
esp_pm_configure(&pm_cfg);
connectivity_event_group = xEventGroupCreate();
xTaskCreate(watchdogTask, "watchdogs", 2048, NULL, configMAX_PRIORITIES-1, NULL);
xTaskCreate(wifiTask, "wifi", 4096, NULL, configMAX_PRIORITIES-4, NULL);