log: add log query API endpoints and display logs on web interface
All checks were successful
Build ESP32 BMC Firmware / build (push) Successful in 53s

This commit is contained in:
2026-03-12 16:20:01 +01:00
parent ccf4569969
commit 6e88ce1137
7 changed files with 316 additions and 1 deletions

View File

@@ -135,6 +135,13 @@ GPIO pins can be configured in `main/config.h`. Modify the `bmc_gpio_defaults` a
| POST | `/api/ota/update` | Start OTA update from URL |
| POST | `/api/ota/upload` | Upload firmware file directly |
### Logs Endpoints
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/logs` | Get system logs |
| POST | `/api/logs/clear` | Clear system logs |
## Web Interface
Access the web interface by navigating to `http://<ip-address>/` in your browser.
@@ -145,6 +152,7 @@ Features:
- Serial console with WebSocket support
- System information display
- OTA firmware update
- System logs viewer
## Example Usage