Files
kano-wand-smarthome/DiscoverBLEDevices.py
T
Lucas Oskorep 336a62a795 Adding in working Kano Code samples using every library I could find for BLE on python
BLEAK Is by far the best/most effective library I have seen for it so far.
2019-09-26 17:04:20 -05:00

9 lines
261 B
Python

import gatt
class AnyDeviceManager(gatt.DeviceManager):
def device_discovered(self, device):
print("Discovered [%s] %s" % (device.mac_address, device.alias()))
manager = AnyDeviceManager(adapter_name='hci0')
manager.start_discovery()
manager.run()