set tx power level in nrf52810

Hello,

i am using nrf52810 and with my custom board and i want to know the tx power level of that and is it possible to change the range please let me know where to get and how to configure it??.

thank tou.

Parents Reply
  • Hello,

    Actually i have used the advertising handle directly so i don't have much idea on that. In my code i declared it as first ,

    static uint8_t m_adv_handle = BLE_GAP_ADV_SET_HANDLE_NOT_SET; 

    then i have added the code snippet 

    int8_t tx_power_level = -40;
    err_code=sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV,m_adv_handle,tx_power_level);
    printf("%d\r\n",err_code);
    APP_ERROR_CHECK(err_code);

    since if any issue please let me know, i am eagerly waiting for your reply.

    thank you.

Children
Related