I've run the Bluetooth demos on it, including the one below which scans for all devices but it doesn't pickup my Bluetooth Keyboard which runs Bluetooth Classic (BR/EDR). So, is the CLUE BLE only or is there an additional library that I need to import? My Android phone and Raspberry Pi seems to pair with the keyboard fine, so I guess the keyboard is working ok.
Code: Select all
from adafruit_ble import BLERadio
ble = BLERadio()
print("scanning")
found = set()
scan_responses = set()
# By providing Advertisement as well we include everything, not just specific advertisements.
for advertisement in ble.start_scan():
addr = advertisement.address
if advertisement.scan_response and addr not in scan_responses:
scan_responses.add(addr)
elif not advertisement.scan_response and addr not in found:
found.add(addr)
else:
continue
print(addr, advertisement)
print("\t" + repr(advertisement))
print()
print("scan done")
Jason.