BLE_GAP_SetConnTxPowerLevel
C
uint16_t BLE_GAP_SetConnTxPowerLevel(int8_t connTxPower, int8_t *p_selectedTxPower);
Description
Sets the RF Tx power level for LE connection Data physical channel PDUs before LE power control is activated.
Note
If both connected devices support the LE Power Control feature, the RF Tx power level will be adjusted by the BLE stack automatically.
Parameters
Parameter | Description |
---|---|
[in] connTxPower | The transmit power level to be used after connection and before LE power control activation. |
[out] p_selectedTxPower | Pointer to the actual transmit power level set. (Unit: dBm) |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully sets the transmit power level. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |