This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

API to get Current Transmit Power from Stack

Hi,

I am using nRF52832 along with Softdevice 6.0.0, SDK 15.0.0, Chip Revision 2 (QFAA-EX0).

To set the transmit power for advertisement, I am using sd_ble_gap_tx_power_set() function.

Is there an api/function by which I can get the transmit power that is set by stack?

We do have local variable that monitors the power set in our application but want to get/read the power set by the stack.

  • Hello,

    There is no API to check the transmit power that the softdevice uses. The idea is that the Softdevice will always use 0dBm unless something else is specified. So if you need this information within your application, you should keep track of it in a local variable, as you describe. 

    The softdevice will never change the tx_power on its own.

    One other way I can think of is that it is possible to use the tx_power in the advertisement, so perhaps if you change your advertising data to use this, and then read out the advertising data you may get that information, but I think this is not a very smooth workaround. It would be better to just keep track in the application.

    Best regards,

    Edvin

  • It would have been great if there was an API by which one can read the set power.

Related