Softdevice - need to call sd_ble_gap_tx_power_set() separately to set TX Power

Hello,

I am using nRF52833 based BE33 (Celium Devices) and using nRF52SDK17.0.2. I am trying to change TX power of advertising but even though I have written the below statement.

init.advdata.p_tx_power_level = &BT_TX_POWER;

I need to call separately sd_ble_gap_tx_power_set() after advertising_init() function to make it set. Currently, I believe there is no mechanism to check at what TX power currently my BLE is transmitting. But I am checking the change in current consumption and by comparing the range of advertisement.

I am trying to change it from 0dBm to +8dBm Tx power but I can see I need to call sd_ble_gap_tx_power_set() above statement written in advertising_init() function is not enough. Why so?

Thanks and regards,

Neeraj Dhekale

Parents Reply Children
No Data
Related