You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: WiFi scale support — WebSocket control + events
Extend the /snapshot WebSocket beyond a one-way weight stream into a
full control + event protocol so web/app clients reach feature parity
with BLE:
* Event broadcasts: button presses (sendWebsocketButton) and
power-off reasons (sendWebsocketPowerOff) wired into the same call
sites as their BLE/USB equivalents.
* Status frames: sendWebsocketStatus / sendWebsocketStatusAll publish
battery %, voltage, charging, timer, display, soft-sleep, LED, and
rate state. Periodic broadcast every WEBSOCKET_STATUS_NOTIFY_INTERVAL_MS.
* Commands accepted as text or JSON: status, events on/off, tare,
timer start/stop/zero, led <r,g,b>|off, display on/off,
low_power on/off, sleep on/off, power off.
* Selectable weight rate: 2 Hz / 5 Hz / 10 Hz, via "rate <hz>",
"interval <ms>", or JSON {rate_hz|hz|rate|interval_ms|...}.
Falls back to default on client disconnect.
* README: document the protocol (events, status, commands, rates).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments