This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Blacklist for my scanning central

Hello everyone,

how can I implement a blacklist for my central which is scanning for a UUID and should also check for example device name. If the device name is in the blacklist it should not connect/pair and ignore the device. I can filter and scan for specific device names, but I want the opposit. I can also implement a whitelist, but also here I want the opposit functionality.

Do you have any idea how I filter out already known devices (over device name or something else) and only scan for new devices? Otherwhise I will stuck in a loop and will pair with the same device again and again

Best regards

Hani Montana

Parents Reply
  • Whenever the SoftDevice has received an advertisiment it will send an BLE_GAP_EVT_ADV_REPORT to the application, see Scanning for advertisers performing legacy advertising. The SoftDevice will call the BLE event callback function, typically this is  the 'ble_evt_handler()' with the given report.

    This report will contain information such as the BLE address of the advertiser, the advertisement payload, and whether or not the advertiser is a connectable device. 

    It is at this point that your application will make the decision on whether or not to connect to this advertiser. 

Children
Related