In the automotive key application field, there is often a need to broadcast multiple advertisement sets with different address modes due to specifications such as CCC, ICCE, and ICCOA. Here, we learn how to add two advertisement sets based on the basic_ble example program.
- Go to SysConfig → BLE → General Configuration, and change Address Mode to RPA with Public Address.
- Add one advertisement set under Broadcast Configuration, and ignore the warning prompt from SysConfig because we will later add the handling of the second advertisement set in code.
- Declare the second ADV set in app_peripheral.c and modify the Peripheral_start function as follows.
- After compiling and flashing, open the SimpleLink Connect App on your phone, and you will find two advertisement sets with different addresses.