Thursday, November 5, 2015

List no of bluetooth devices that are connected to raspberry pi

 import bluetooth  
print("performing inquiry...")
nearby_devices = bluetooth.discover_devices(lookup_names = True)
print("found %d devices" % len(nearby_devices))
for addr, name in nearby_devices:
print(" %s - %s" % (addr, name))

No comments:

Post a Comment