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

How to get the correct Tx Power value?

Hi developers,

Now, I want to get a correct Tx power value. I printed out the value from "ble_gap_evt_t->params.adv_report.tx_power" and could get only 127, even this parameter is changed like -4, -12. I thought that the last data from iBeacon data set means Tx power. It has also always 0. 

Can you advise me how to get correct Tx power value?

Best regards

it0406

Parents
  • Hi

    How exactly have you set the TX power in your application? I would recommend using the sd_ble_gap_tx_power_set() function. There's a discussion in this case on how TX power should be set in a BLE application where my colleague Einar explains it in detail, so please check it out.

    I'm guessing you've just made a small mistake in your configuration causing this strange 127 value you're seeing.

    Best regards,

    Simon

Reply
  • Hi

    How exactly have you set the TX power in your application? I would recommend using the sd_ble_gap_tx_power_set() function. There's a discussion in this case on how TX power should be set in a BLE application where my colleague Einar explains it in detail, so please check it out.

    I'm guessing you've just made a small mistake in your configuration causing this strange 127 value you're seeing.

    Best regards,

    Simon

Children
No Data
Related