Hi Everyone,
I am working on nrf52832, I am using sdk15.0.0 ble_peripheral /ble_app_beacon as reference.
I want to set TX_POWER using sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV,m_adv_handle,RADIO_TXPOWER_TXPOWER_Pos4dBm);
m_adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET;
when I called this function after the ble_advertising function,err_code return 12292.
actually i am not understood BLE_GAP_ADV_SET_HANDLE_NOT_SET=0xFF.
Initially tx_power set to 4dbm but when softdevice enable getting error (code stuck at blx ,r3).
I am also trying using NRF_RADIO->TX_POWER=RADIO_TXPOWER_TXPOWER_Pos4dBm;
Register initially set to 4dbm but after call ble_stack_init() it set to 0dbm.When you change txpower, you need to update this value of the advertising data, it doesn't get updated automatically by the softdevice.
I think I forgot some configuration in my code, Can you suggest a proper solution to see the changes in TXPOWER.
thanks.