2025-02-24 5:10 AM
Hi all
We are using STM32WB55 for BLE application. By default, the TX power is added to AD data structure.
Got to know that we can use this below API to remove the field from advertisement.
ret = aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);
Is there a way to completely remove the TX power from AD structure? So, every time I start the advertisement, I don't need to explicitly remove the TX power parameter.
Solved! Go to Solution.
2025-03-05 6:16 AM
Hi,
As mentioned in the explanation of the ACI_GAP_SET_DISCOVERABLE function:
/**
* @brief ACI_GAP_SET_DISCOVERABLE
......
* With this command, the BLE Stack will also add automatically the following
* standard AD types:
* - AD Flags
* - TX Power Level
So the only way to remove the TX Power from the ADV is to call the function
aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);
Best Regards,
Joé
2025-03-05 2:36 AM - edited 2025-03-05 2:37 AM
Hey, @Remi QUINTIN
Can you please provide me an answer for this?
2025-03-05 6:16 AM
Hi,
As mentioned in the explanation of the ACI_GAP_SET_DISCOVERABLE function:
/**
* @brief ACI_GAP_SET_DISCOVERABLE
......
* With this command, the BLE Stack will also add automatically the following
* standard AD types:
* - AD Flags
* - TX Power Level
So the only way to remove the TX Power from the ADV is to call the function
aci_gap_delete_ad_type(AD_TYPE_TX_POWER_LEVEL);
Best Regards,
Joé