Closed JohnConnett closed 7 months ago
Hi! The package uses deprecated BlueZ tools (hciconfig, hcitool and hcidump) with sync-communication, causing a fair share of issues on multiple users' systems. https://github.com/ttu/ruuvitag-sensor/#bluez
Unfortunately, I don't have any other recommendation than to use async-communication with the Bleak adapter. It will be the default adapter for Linux in the near future. I will add already a mention to the README that new users should start with async-communication, regardless of the OS they are using (https://github.com/ttu/ruuvitag-sensor/pull/231). https://github.com/ttu/ruuvitag-sensor#Bleak
If you encounter problems with BlueZ and prefer not to switch to asynchronous methods, it might be worthwhile to try the Bleson-adapter, although it is currently in an alpha state.
Describe the bug Running the 1. Get sensor data synchronously with callback example doesn't find any RuuviTags:
Running
bluetoothctl
on the same system doesn't discover any RuuviTags:However, running
bluetoothctl
on a nearby system running Ubuntu 22.04.3 LTS (Jammy Jellyfish) does discover some RuuviTags:The 1. Get sensor data synchronously with callback example doesn't find any RuuviTags on this system either.
Running the same example on a Raspberry Pi 4 Model B running Raspbian 11 (bullseye) works as expected:
I appreciate that this may be a setup or documentation error rather than a bug in ruuvitag-sensor. Would really appreciate clarification or an explanation!
Environment (please complete the following information):