ESP32 keeps triggering WDT while running WiFi Manager on Core0. Could you help me?

This page summarizes the projects mentioned and recommended in the original post on /r/esp32

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • WiFiManager

    ESP8266 WiFi Connection manager with web captive portal

  • // I won't hide these informations bellow because this is just a test. You can compile on your esp32 #define BLYNK_TEMPLATE_ID "TMPLc9VK-ym3" #define BLYNK_DEVICE_NAME "Wifi Bluetooth ESP32 DHT Station" #define BLYNK_AUTH_TOKEN "IzH-vvhVf0uLJaV54Ziero7kjUiFeq5g" #include // https://github.com/tzapu/WiFiManager #include #define TRIGGER_PIN 22 #define LED_PIN 23 TaskHandle_t Task1; int timeout = 120; unsigned long blink_timer; char auth[] = BLYNK_AUTH_TOKEN; WiFiManager wm; void wifi_stuff( void * pvParameters ){ Serial.print("wifi_stuff running on core "); Serial.println(xPortGetCoreID()); for(;;){ if(!Blynk.connected()){ wm.autoConnect(); Blynk.config(auth); Blynk.connect(5000); } if ( digitalRead(TRIGGER_PIN) == LOW) { WiFiManager wm; wm.resetSettings(); wm.setConfigPortalTimeout(timeout); if (!wm.startConfigPortal("OnDemandAP")) { Serial.println("failed to connect and hit timeout"); } wm.setEnableConfigPortal(false); } } } void setup() { WiFi.mode(WIFI_STA); // explicitly set mode, esp defaults to STA+AP Serial.begin(115200); Serial.println("\n Starting"); pinMode(TRIGGER_PIN, INPUT_PULLUP); pinMode(LED_PIN, OUTPUT); wm.setEnableConfigPortal(false); wm.autoConnect(); Blynk.config(auth); Blynk.connect(5000); //blynk connect timeout xTaskCreatePinnedToCore( wifi_stuff, /* Task function. */ "Task1", /* name of task. */ 10000, /* Stack size of task */ NULL, /* parameter of the task */ tskIDLE_PRIORITY, /* priority of the task */ &Task1, /* Task handle to keep track of created task */ 0); } void loop() { Blynk.run(); //bellow is for debug if (millis() - blink_timer > 300){ digitalWrite(LED_PIN, !digitalRead(LED_PIN)); blink_timer = millis(); Serial.println(Blynk.connected()); } }

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts