added udp logger to log over network and not uart

Added modem sleep for wif
This commit is contained in:
2026-03-14 17:27:24 -04:00
parent b702839f8e
commit a9d5aa83dc
9 changed files with 171 additions and 4 deletions

View File

@@ -17,6 +17,11 @@ npm run dev # Dev server — calls real ESP32 API (set VITE_API_BASE
npm run build # Production build → dist/index.html
npm run build:esp32 # Build + gzip → dist/index.html.gz
npm run ota:deploy # OTA deploy frontend to device
### Logging on Ethernet
When the device is connected via Ethernet, logs are broadcast over UDP. Run `ncat -ul 514` on your PC to view the live `ESP_LOG` output.
*(If `ncat` throws a `WSAEMSGSIZE` error on Windows, use this Python command instead:)*
```powershell
python -c "import socket; s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM); s.bind(('', 514)); [print(m[0].decode(errors='ignore'), end='') for m in iter(lambda:s.recvfrom(4096), None)]"
```
There are no automated tests. Verify by building and inspecting on-device.