Error handling on system boot #30

Merged
localhorst merged 22 commits from feature/error-handling into main 2026-05-10 12:39:47 +02:00
Showing only changes of commit 67929580d5 - Show all commits
+6
View File
@@ -28,6 +28,12 @@ static void event_handler(void *arg, esp_event_base_t event_base,
void initWifi(void)
{
s_wifi_event_group = xEventGroupCreate();
if (s_wifi_event_group == NULL)
{
ESP_LOGE(TAG, "xEventGroupCreate() failed!");
return;
}
ESP_ERROR_CHECK(esp_netif_init());
ESP_ERROR_CHECK(esp_event_loop_create_default());