Open michael-mortimer opened 5 years ago
Quite similar issue happens to me. Only in Python3, for Python2 it was okay.
in my case, the NoneType bug sometimes happen when I disconnect bluetooth device. my solution is as follow btle.Peripheral(self.address)._stopHelper() btle.Peripheral(self.address).disconnect() before I disconnect bluetooth device, I call the _stopHelper() function. and It works
disconnection occurs between 20-30secs after notifications turned on (reads notifications fine until disconnect), notifications work fine when tested in bluetoothctl without disconnection. How to keep alive?
CODE
THROWS