ruuvitag-sensor icon indicating copy to clipboard operation
ruuvitag-sensor copied to clipboard

Switching from hcitool to bluetoothctl

Open RedFoxFinn opened this issue 1 year ago • 2 comments

I am wondering if it would be possible to make this change since this could present a problem with trying to scan tags with a BT 5.x device.

Not exacly sure yet would it be a small and trivial change or painful journey to implement that.

RedFoxFinn avatar Jun 04 '24 07:06 RedFoxFinn

Hi. I think this sound like a good addition 👍

We would need to implement an own communication module for bluetoothctl in a same way as there is for hcitool and add a configuration option to choose the used tool. https://github.com/ttu/ruuvitag-sensor/blob/master/ruuvitag_sensor/adapters/nix_hci.py https://github.com/ttu/ruuvitag-sensor/blob/dee46fbd36f01b67e22e29a81378a7b445247920/ruuvitag_sensor/adapters/init.py#L11

I can inspect this option more when I have time and post my findings here., but if some one finds this tasks interesting, feel free to start to work on this.

ttu avatar Jun 16 '24 08:06 ttu

Work in progress: https://github.com/ttu/ruuvitag-sensor/tree/feat-bluetoothctl-adapter

ttu avatar Jan 20 '25 17:01 ttu