How can I increase the TX power on nRF5_SDK_15.3.0?
How can I increase the TX power on nRF5_SDK_15.3.0?
Hi.
You can use sd_ble_gap_tx_power_set() to increase the TX power if you're using the softdevice.
regards
Jared
I am using s132 ble_app_beacon example but i don´t find sd_ble_gap_tx_power_set function.
Where are located this function?
Thanks
Hi,
It's included in the ble_gap.h file. You should be able to call it in the beacon example without adding anything. Are you getting build errors?
regards
Jared
Good, i find the sd_ble_gap_tx_power_set() function in ble_app_proximity example and was very clarify to understand how this function is used.
But, when i add:
uint32_t err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV, m_advertising.adv_handle, 4);
I got this error:
'm_advertising' undeclared (first use in this function)
What i'm doing wrong?
Thanks
Well, the error message sums it up:
Haroldo said:'m_advertising' undeclared (first use in this function)
Before you call sd_ble_gap_tx_power_set you need to have declared the m_advertising struct that you are passing as a parameter to the function.
regards
Jared