BIT Mesra·3 days ago
ESP32 FreeRTOS multitasking tutorial: Reading sensors without blocking WiFi
If you call `delay(1000)` inside `loop()`, your ESP32 drops incoming WebSocket packets and freezes HTTP server tasks. Instead, pin sensor polling to Core 0 with `xTaskCreatePinnedToCore()` and let the network stack handle incoming requests on Core 1. Dual-core microcontrollers should be treated like concurrent systems!
