buttplug
buttplug copied to clipboard
Handle bluetooth adapter hotplugging gracefully
Describe the bug Buttplug-rs has no way to handle whether a bluetooth adapter was plugged in or removed while it is running
Additional context buttplug-rs uses btleplug (https://github.com/deviceplug/btleplug), which doesn't have a way of detecting adapter hotplugging yet. This means that it's difficult to manage adapters being un/plugged while the library is being used. This will require fixes in btleplug first, but those should propagate up once that's done.
This is probably never going to happen, and is such a weird thing that we should just spew errors if it does happen. I suspect we'll see it on mobile when people turn on airplane mode or something, but we should just see our available adapters fall to zero or something?