Good day
I converted a Central UART example. I thought I would experiment with the "sd_ble_gap_tx_power_set()" function to see how it works.
When I include the following
err_code= sd_ble_gap_tx_power_set(BLE_GAP_TX_POWER_ROLE_ADV,BLE_GAP_ADV_SET_HANDLE_NOT_SET,4); //tx_power Radio transmit power in dBm (accepted values are -40, -30, -20, -16, -12, -8, -4, 0, and 4 dBm). APP_ERROR_CHECK(err_code);
My program just hangs at APP_ERROR_CHECK. No error code or assert.
If I comment it out it runs but I can see the sd_ble_gap_tx_power_set() has no effect, so im obviosuly missing something.
Any idea on what would cause it. I set a breakpoint at APP_ERROR_CHECK err_code =0x00000002
I have also tried to set a breakpoint in app_error_weak.c to see p_info but my program does not reach there.
Any advice would be appreciated.