buttplugio / buttplug

Rust Implementation of the Buttplug Sex Toy Control Protocol
https://buttplug.io
Other
846 stars 63 forks source link

Allow users to faux-disconnect devices from server (for re-enumeration) #635

Open qdot opened 2 months ago

qdot commented 2 months ago

In order for users to make changes to device configs (i.e. device limits), we should allow users to be able to simulate a device disconnect/reconnect so we can re-enumerate things like step values to the client program.

Note that I do not care if this will break clients that do not handle device disconnect correctly. This is their problem, not mine.

qdot commented 2 months ago

@blackspherefollower Feel free to chime in here if you have any concerns other than "this will break clients that don't handle device reconnection"

blackspherefollower commented 2 months ago

I see no issue here: Bluetooth range issues are still more likely cause of reconnection.

Any chance this could be used to dynamically blocklist/un-blocklist devices without needing to stop the server?