getsenic / gatt-python

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

Cannot write_value twice through BlueZ #46

Closed Slievenamon closed 5 years ago

Slievenamon commented 5 years ago

Hi, I'm using BlueZ 5.50, When I send value through BlueZ, it's work properly the first time but when I call the function a second time the dbus send me back an error (InProgress): write value failed write value fail for characteristic 6e400002-b5a3-f393-e0a9-e50e24dcca9e , error, In Progress write value succeeded write value succeeded for characteristic 6e400002-b5a3-f393-e0a9-e50e24dcca9e

my code : characteristic_tx.write_value(str) time.sleep(10) characteristic_tx.write_value(str)

Do I need to send something to clear BlueZ flag ?

I'm not used to Python, how can I generate interruption in GObject.MainLoop() to send data through BlueZ ?

leontan111 commented 3 years ago

Hi Slievenamon,

really interested to know if this issue get solved?