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

ParameterDescription
[in] connTxPowerThe transmit power level to be used after connection and before LE power control activation.
[out] p_selectedTxPowerPointer to the actual transmit power level set. (Unit: dBm)

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sets the transmit power level.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.