Using Whitelist in STM32WB Custom Template and Configuration in STM32CubeMX
Hello,
I am developing a BLE application using the STM32WB Custom Template. In my project, I want to implement the Whitelist feature. My goal is to start the device in normal advertising mode initially, obtain the MAC address of the connected device, and then add this device to the Whitelist. For subsequent connections, I only want devices that are in the Whitelist to be able to connect.
However, it seems that the Custom Template does not include the necessary configurations or support for Whitelist usage by default. Because of this, I need some guidance:
My Questions:
- How should I configure the GAP settings in the STM32WB Custom Template to enable Whitelist usage? Are there any additional settings required, especially for GAP roles (Central/Peripheral) and Whitelist support?
- What settings do I need to enable in STM32CubeMX for Whitelist usage? Which options should I select to enable Whitelist and correctly configure the GAP features?
- How should I structure the Adv_Request() function to perform advertising in Whitelist mode? How can I dynamically switch to Whitelist mode for subsequent connections?
- If there are any example projects or step-by-step documents available for configuring GAP roles or Whitelist usage, could you please share them?
Thank you in advance for your help. I would greatly appreciate any guidance or example projects you can provide.
Best regards.
