1.1.2.1.1.4.39 BLE_GAP_SetAdvTxPowerLevel
C
uint16_t BLE_GAP_SetAdvTxPowerLevel(int8_t advTxPower, int8_t *p_selectedTxPower);
Description
Set RF Tx power level preset value for Advertising physical channel PDUs. (Advertising physical channel PDUs means all of advertising, scanning and initiating PDU). Advertising PDU Tx power setting for specific Advertising handle can be revised by BLE_GAP_SetExtAdvParams. It is recommended to called during application code initialization.
Parameters
Parameter | Description |
---|---|
[in] advTxPower | The advertising transmit power. |
[out] p_selectedTxPower | Point to the real transmit power level. (Unit: dBm) |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully set the transmit power level. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |