I am using "ble_app_hrs_rscs_relay" example. I am not able to set the TX power of advertising and scanning both. Currently the avg current is too high.
I also tried using this function
err_code = sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV ,m_advertising.adv_handle, -20);
but no difference, I have the following questions related to this issue
1) What am I doing wrong here? Is there any parameter I am not parsing correctly?
According to the data sheet the current should not be greater then 7.5mA at TX +4dBm output power.
2) While using power profiler does it also include the LCD current consumption for NRF52DK (PCA10040), how ever I have turn off all the leds in the code?
3) Can I also set the TX or RX power while scanning. I know there is a scanning gap role (BLE_GAP_TX_POWER_ROLE_SCAN_INIT). Please explain by example.
enum BLE_GAP_TX_POWER_ROLES
{
BLE_GAP_TX_POWER_ROLE_ADV = 1, /**< Advertiser role. */
BLE_GAP_TX_POWER_ROLE_SCAN_INIT = 2, /**< Scanner and initiator role. */
BLE_GAP_TX_POWER_ROLE_CONN = 3, /**< Connection role. */
};
4) Can you explain what is the param handle in this function may be I have a wrong understanding of it
sd_ble_gap_tx_power_set(uint8_t role, uint16_t handle, int8_t tx_power)