Complete the code to start scanning for BLE devices.
ble_scanner.start_scan([1])timeout instead of durationinterval with scan timeThe duration parameter sets how long the scan runs in seconds. Here, 5 seconds is a common scan duration.
Complete the code to advertise a BLE beacon with a specific UUID.
beacon.advertise(uuid=[1])The UUID must be a string enclosed in quotes to be valid in code.
Fix the error in the code to connect to a BLE device by address.
device = ble.connect([1])The device address must be a string literal, so it needs quotes.
Fill both blanks to create a dictionary of beacon names and their RSSI values.
beacon_data = {device.[1]: device.[2] for device in scanned_devices}address instead of nameuuid instead of rssiThe dictionary keys are beacon names (name) and values are signal strengths (rssi).
Fill all three blanks to filter scanned devices with RSSI stronger than -70 and create a dictionary with their UUIDs and names.
filtered = {device.[1]: device.[2] for device in scanned_devices if device.[3] > -70}address instead of uuidname instead of rssiWe use uuid as keys, name as values, and filter by rssi signal strength.
