peplin / pygatt

Python wrapper for gatttool (a deprecated tool from BlueZ) and the BGAPI for accessing Bluetooth LE Devices
Other
527 stars 185 forks source link

gatttool gets stuck using 100% cpu when pygatt is used from cron #319

Open af7567 opened 3 years ago

af7567 commented 3 years ago

On slackware64-current with a USB bluetooth dongle. I have been using the trionesControl python module to control an LED strip. When running from a terminal everything runs and exits fine. But I found that when it is run from cron it will work correctly, and the python script will exit, but "gatttool -i hci0 -I" is left using 100% CPU until I kill it.

Simone-Cu commented 2 years ago

Also on mine, gatttool seems to reach high cpu usage when using pygatt in a service.