Code: Select all
bluetooth.discover_devices()Code: Select all
bluetooth.discover_devices()Code: Select all
# Dependencies:
# sudo apt-get install python-bluetooth
import bluetooth
print("Searching for Bluetooth devices....")
devices = bluetooth.discover_devices()
for addr in devices:
print("Found device: {}".format(addr))