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

Setting TX power level in S120

When is the most appropriate time to set the transmit power while using the S120 softdevice? I want to set it once at power up. Most examples that use the S110 SD set the power level in their gap_params_init() function.

I've added the call to sd_ble_gap_tx_power_set() at the end of my ble_stack_init() function. It appears to succeed but I'd like to know if there are any timing requirements that dictate that it should be called at some other time.

  • Hi,

    SDK manual does not state anything particular about how and when use sd_ble_gap_tx_power_set(), so, I suppose is safe to use where you think it could fit better with your needs.

    A note about which type of error the function call may return, in S120 documentation seems there are only two errors type (NRF_SUCCESS and NRF_ERROR_INVALID_PARAM) while in S110 there is one more error : NRF_ERROR_BUSY.

    Maybe a typo !!

    -c

Related