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
I want to connect with ble device, but I only know UUID, therefore I try to discovery with UUID, discovery result managed to get ble device that I want. But when I want to connect, it can not be done because discovery continues to run, I am very confused how to stop discovery and connect with the ble device.
The text was updated successfully, but these errors were encountered:
Someone feel free to correct me if there is a better way (I'm still quite new to this library).
I found that once device_discovered is triggered on a scan I can run self.stop() to stop the scanning if the devices matches my requirements. Modified from the example in the readme:
class AnyDeviceManager(gatt.DeviceManager):
def device_discovered(self, device):
if(True):
self.stop()
I want to connect with ble device, but I only know UUID, therefore I try to discovery with UUID, discovery result managed to get ble device that I want. But when I want to connect, it can not be done because discovery continues to run, I am very confused how to stop discovery and connect with the ble device.
The text was updated successfully, but these errors were encountered: