Hello,
I am trying to change the tx power for my nRF52-DK which is having nRF52832 chip. I trying the following code to change the tx power to -40 dB.
int8_t tx_power_level = -40;
init.advdata.p_tx_power_level = &tx_power_level;
sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, tx_power_level);
I have added the following lines of code to the advertising_init() function.
Please help, I am a beginner.
Thanks in advance.