getsenic / gatt-python

Bluetooth GATT SDK for Python
MIT License
318 stars 86 forks source link

Loss of synchronisation #49

Open ashesman opened 5 years ago

ashesman commented 5 years ago

Devices get out of sync with their bluez counterparts. For instance I just had it so that is_services_resolved() would immediately return true and the services_resolved event was never triggered on the device. After a 'sudo /etc/init.d/bluetooth restart', the problem went away. The Adafruit Bluefruit LE library offers a clear_cache function to help with this same issue.

To expand a bit, is_services_resolved() returned true but the services list of the device was empty.