I am using 2 nRF52840 DK for range testing using sample code available in SDK V16 (nRF5_SDK_16.0.0_98a08e2\examples\ble_central_and_peripheral\experimental\ble_app_att_mtu_throughput)
Tried to set Tx power to 8 dBm and code is running fine but how can I be sure that it is working on 8 dBm power, is there any API to check set Tx power?
Calling sd_ble_gap_tx_power_set() from here :
static void scan_start(void)
{
ret_code_t err_code;
NRF_LOG_INFO("Starting scanning.");
//Added by BR
err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_SCAN_INIT ,BLE_CONN_HANDLE_INVALID, 8);
APP_ERROR_CHECK(err_code);
bsp_board_led_on(SCAN_ADV_LED);
err_code = nrf_ble_scan_start(&m_scan);
APP_ERROR_CHECK(err_code);
}