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.
This commit is contained in:
Lucas Oskorep
2019-09-26 17:04:20 -05:00
parent 8484b8ef45
commit 336a62a795
7 changed files with 278 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
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()