GSV4-BT.py 304 B

1234567891011121314151617181920
  1. # simple inquiry example
  2. import bluetooth
  3. nearby_devices = bluetooth.discover_devices(lookup_names=True)
  4. print("Found {} devices.".format(len(nearby_devices)))
  5. for addr, name in nearby_devices:
  6. print(" {} - {}".format(addr, name))
  7. class GSV4-BT():
  8. __init__(self):
  9. pass
  10. scan(self):