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
All checks were successful
Build ESP32 BMC Firmware / build (push) Successful in 53s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user