This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Set TX power on peripheal/central UART example

Hi everyone,

I wish know how i can set BLE_GAP_TX_POWER_ROLE_ADV at peripheral and BLE_GAP_TX_POWER_ROLE_CONN at central on UART example provided on nRF Connect SDK v1.6.1.

I read about call sd_ble_gap_tx_power_set() function between advertising_init and advertising_start, but unfortunetlly sd_ble_gap_tx_power_set() isn't included in this project. 

What alternative i could make?

Thank you,

regards.

Parents Reply
  • I add every dependences of the project that UART project doesn't include and copy the functions getTx and setTx but i don't succed, i get errors because of BT_HCI_OP_VS_WRITE_TX_POWER_LEVEL symbol is undefined. I will keep trying, but just to know, there aren't another method that fix the Tx power to the maximum statically? 

    I tryed define by myself like:

    But theorically that definition is inside of:

    Unfortunatelly i can't find that symbol on the file, althought i added:

    On Kconfig and dedconfig.

    Sorry but i am so stuck at this point, I am using nRF Connect 3.7 and SDK 1.6.1, modifying the example of central peripheal.

Children
Related