Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sudo aptinstall bluetooth
- # sudo apt-get update
- # sudo apt-get install bluetooth
- # sudo apt-get install bluez
- # sudo apt-get install python-bluez
- # python BlueTooth.py
- from bluetooth import *
- print ("performing inquiry...")
- nearby_devices = discover_devices(lookup_names = True)
- print ("found %d devices") % len(nearby_devices)
- for name, addr in nearby_devices:
- print (" %s - %s") % (addr, name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement