This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Bonded device scanning

Hi all,

My project involves a ble-central initialising peripherals and creating a bond. When this is complete the peripheral should go into sleep mode and only wake up when data is ready. I want the central to be constantly scanning for the bonded peripherals and immediately connect to extract information when one is found. 

For this functionality i'll need to scan for only previously bonded devices so I can either; A) create a list of all the "awake" peripherals or B) automatically connect as they are discovered.

The amount of possible peripherals will be in the 20 - 30 range.

Does anyone know how this could be achieved? Any possible examples would be a big help.

Thanks,

Parents Reply Children
  • It's not possible to extend it for more than 8 peripherals (due to radio hardware limitation). You can rotate the list as you plan but there isn't any "Not Found" event, unless you set a timeout for the scanner. Then you will have a timeout event and then can rotate the list to new devices. 

    But for large number of devices (30 ? ), I would suggest to just use the address list instead of whitelist. This meant you scan for any device, and then when you receive the advertising packet, you check if the address is in the list, then you can do connection to that address. This can be done in the application. 

Related