added udp logger to log over network and not uart
Added modem sleep for wif
This commit is contained in:
@@ -103,3 +103,11 @@ npm run ota:package # Package as versioned .bin
|
||||
npm run ota:bundle # Package FW + frontend as .bundle
|
||||
npm run ota:deploy # Deploy frontend OTA to device
|
||||
```
|
||||
|
||||
## Logging on Ethernet
|
||||
|
||||
When the device is connected to Ethernet, logs are broadcast over UDP to port 514. Use `ncat -ul 514` on your PC to view them live.
|
||||
*(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)]"
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user