WebBluetooth would be really cool.
Process on device:
- Open settings
- Click pair companion app button (scanning will pause)
- Device will temporarily broadcast identifiable information that the companion app can pick up (web version to start)
- App will initiate pair, show code on both devices (if possible) and you will be prompted on Helgatchi to connect or cancel.
Problems:
an active BLE connection will inhibit scanning. We must investigate to see if we can have really long TTLs (or whatever it would be for bluetooth) where the device can connect, send status data/accept commands, etc. When a scan is scheduled, the companion app is made aware of it, the helgatchi disconnects, runs its scan window, reconnects, and publishes data to the app. The app will effectively lock you out of controls while the scan is running.
WebBluetooth would be really cool.
Process on device:
Problems:
an active BLE connection will inhibit scanning. We must investigate to see if we can have really long TTLs (or whatever it would be for bluetooth) where the device can connect, send status data/accept commands, etc. When a scan is scheduled, the companion app is made aware of it, the helgatchi disconnects, runs its scan window, reconnects, and publishes data to the app. The app will effectively lock you out of controls while the scan is running.