Add WebSocket support for switch status updates
- 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>
This commit is contained in:
@@ -18,7 +18,7 @@ PB_BIND(WifiStatus, WifiStatus, AUTO)
|
||||
PB_BIND(UartData, UartData, AUTO)
|
||||
|
||||
|
||||
PB_BIND(LoadSwStatus, LoadSwStatus, AUTO)
|
||||
|
||||
|
||||
PB_BIND(StatusMessage, StatusMessage, AUTO)
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user