mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Detect when device is not paired at OS level and handle automatic disconnections. The app now properly updates UI state when the device is disconnected by the OS. Changes: - Add BluetoothPairingError custom error class in BrotherPP1Service - Track isInitialConnection state to differentiate pairing issues from disconnects - Detect pairing issues in sendCommand() only during initial connection - Add onDisconnect() subscription method to BrotherPP1Service - Listen for 'gattserverdisconnected' events and update state automatically - Add isPairingError state to useBrotherMachine hook - Display pairing errors with blue info styling instead of red error styling - Include step-by-step pairing instructions: long-press Bluetooth button on machine, then pair in OS settings - Automatically reset connection state when device disconnects 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| BrotherPP1Service.ts | ||
| PatternCacheService.ts | ||