Complete the code to start scanning for BLE devices.
ble_scanner.start_scan([1])The start_scan method uses duration to specify how long to scan in seconds.
Complete the code to connect to a BLE device using its address.
device = ble.connect([1])BLE devices are connected using their unique device_address.
Fix the error in the code to read data from a BLE characteristic.
data = device.read_characteristic([1])To read data, you must specify the characteristic_uuid, not the service or device identifiers.
Fill both blanks to write data to a BLE characteristic.
device.write_characteristic([1], [2])
The first argument is the characteristic_uuid to write to, and the second is the data_bytes to send.
Fill all three blanks to subscribe to notifications from a BLE characteristic.
device.subscribe([1], callback=[2], enable=[3])
To subscribe, provide the characteristic_uuid, a callback function to handle notifications, and set enable to True.
