Created
March 14, 2016 04:05
-
-
Save geowa4/d9faa5263799ec61a23b to your computer and use it in GitHub Desktop.
Discover Bluetooth addresses.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bluetooth | |
nearby_devices = bluetooth.discover_devices( | |
duration=8, lookup_names=True, flush_cache=True, lookup_class=False | |
) | |
for addr, name in nearby_devices: | |
print("%s - %s" % (addr, name)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment