You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how to stop main loop, because there is blocking, and and I can't call stop function, this my code
import gatt
manager = gatt.DeviceManager(adapter_name='hci0')
class AnyDevice(gatt.Device):
def services_resolved(self):
super().services_resolved()
device_proprietary_service = next(
s for s in self.services
if s.uuid == 'd0cbda9a-9a69-49ab-b4d1-a96d6fbd10c6')
psp = next(
c for c in device_proprietary_service.characteristics
if c.uuid == 'd0cb6c99-9a69-49ab-b4d1-a96d6fbd10c6')
Activity
JlnWntr commentedon Nov 27, 2018
This is a good question.
Snevzor commentedon Nov 27, 2018
Hello, please see #28
JlnWntr commentedon Nov 27, 2018
Thank you, but this refers to KeyboardInterrupts. How can you
stop()the manager via python code some seconds after callingmanager.run()?JlnWntr commentedon Dec 3, 2018
#38
I've added a function for a timeout.