Adding in some example bluetooth files
This commit is contained in:
@@ -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()
|
||||
Reference in New Issue
Block a user