Implement a failsafe mode that starts a basic web server if the main one fails. Add a watchdog timer to auto-reset the device if it hangs. Include remote reset functionality via MQTT or a specific web endpoint. Implement a fallback AP mode if WiFi connection fails.
tree /f /a > project_structure.txt