cancel
Showing results for 
Search instead for 
Did you mean: 

Using Whitelist in STM32WB Custom Template and Configuration in STM32CubeMX

KemalUzgoren
Associate III

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:

  1. 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?
  2. 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?
  3. 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?
  4. 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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
STTwo-32
ST Employee

Hello @KemalUzgoren 

First, I suggest you take a look at the 4 parts of this article:

Also, you can refer to the same configurations of this example project

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
STTwo-32
ST Employee

Hello @KemalUzgoren 

First, I suggest you take a look at the 4 parts of this article:

Also, you can refer to the same configurations of this example project

Best Regards.

STTwo-32

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

Hello @STTwo-32,

Thank you for your response and guidance. I will review the articles and the example project as suggested.

Best regards,

Kemal