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
Is it possible to detect when a system device is connected? I can poll getSystemDevices but it would be nice if it were in a stream.
Or is this pointless to do here? Should I just query the system devices, then move onto scanning for a device if it's not found?
The case I have is this:
my app has an optional ble device that can be connected at any time
the ble device has an aggressive sleep, so it's normally not advertising and not connected
I've saved the deviceId in my app's storage
I want to launch the app first, then connect to the ble device when it's awoken. Do I just need to periodically poll getSystemDevices and scan for the device? Or is there a better way of doing this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to detect when a system device is connected? I can poll getSystemDevices but it would be nice if it were in a stream.
Or is this pointless to do here? Should I just query the system devices, then move onto scanning for a device if it's not found?
The case I have is this:
I want to launch the app first, then connect to the ble device when it's awoken. Do I just need to periodically poll getSystemDevices and scan for the device? Or is there a better way of doing this?
Beta Was this translation helpful? Give feedback.
All reactions