buttplug-developer-guide icon indicating copy to clipboard operation
buttplug-developer-guide copied to clipboard

examples: Update Rust examples for buttplug v6

Open brandonweeks opened this issue 3 years ago • 0 comments

Follow up to #54. I was mostly able to migrate the example code to the v6 API, however I have a few questions about device_control.rs:

  • server::comm_managers::test::new_bluetoothle_test_device was moved to tests::util::test_device_manager and no longer appears visible to other crates.
  • ClientDeviceMessageAttributesMap was refactored into the ClientDeviceMessageAttributes struct and I cannot find an ergonomic way to implement loop over the supported messages and attributes (device_control.rs line 55-63 in this PR).

I'm by no means a Rust expert, so apologies if these issues should be simple.

brandonweeks avatar Oct 28 '22 00:10 brandonweeks