Bluetooth
Scan for BLE Devices
bluetooth.start_scan(10) # starts scanning and stop after 10 seconds
bluetooth.start_scan(-1) # starts scanning indefinitely until bluetooth.stop_scan() is calledRaw Data from a BLE Device
from network import Bluetooth
bluetooth = Bluetooth()
bluetooth.start_scan(-1) # start scanning with no timeout
while True:
print(bluetooth.get_adv())Connect to a BLE Device
Connect to a BLE Device and Retrieve Data
Retrieve the Name & Manufacturer from a BLE Device
Last updated