- Define `LoadSwStatus` protobuf message for switch state data (`main` and `usb`).
- Introduce `updateSwitchStatusUI` to synchronize UI with WebSocket switch status payloads.
- Update backend logic to manage and broadcast switch status changes dynamically.
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
- Integrated current limit settings in `nconfig`.
- Enabled API support for managing current limits.
- Added UI components for configuring current limits.
- Implemented backend logic for handling validations and updates.
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
- Add `updateUptimeUI` function for dedicated uptime handling.
- Modify WebSocket message handling to update uptime separately from sensor data.
- Adjust logging to provide better clarity for unknown payload types.
- Fix formatting inconsistency in uptime display (`1d` -> `1days`).
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
- Consolidate chart setup into `initializeSingleChart` for reusability.
- Introduce `scaleConfig` for step-wise Y-axis scaling.
- Enhance scaling logic to dynamically adjust `max` and `stepSize` based on data.
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>
- Use protobuf
- Eliminate unnecessary optimization logic
- UART, sensor, status data transmitted as pb data
Signed-off-by: YoungSoo Shin <shinys000114@gmail.com>