The syncNTP() call blocks up to 5 seconds waiting for NTP response on every deep sleep wake cycle (every 10 minutes). Combined with mDNS startup, this added significant active WiFi time per cycle. Fix: Add 'minimal' flag to WiFiManager::begin()/startStation(). In the deep sleep wake path, skip NTP sync and mDNS entirely. The system clock is already seeded from the hardware RTC at boot, which is accurate enough for 30-day date window calculations. Normal interactive boot still does full NTP sync + mDNS as before. Co-authored-by: Cursor <cursoragent@cursor.com>
25 KiB
25 KiB