1.2.2.1.1.4.41 BLE_GAP_SetConnTxPowerLevel

C

uint16_t BLE_GAP_SetConnTxPowerLevel(int8_t connTxPower, int8_t *p_selectedTxPower);

Description

Set RF Tx power level preset value for LE connection Data physical channel PDU. If both connected devices support LE Power Control feature, RF Tx power level will be adjusted by BLE stack automatically.

Parameters

ParameterDescription
[in] connTxPowerThe transmit power after connected and before the LE transmit power control protocol been activated.
[out] p_selectedTxPowerPoint to the real transmit power level. (Unit: dBm)

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully set the transmit power level.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.