BLE_GAP_ReadRemoteTxPowerLevel

C

uint16_t BLE_GAP_ReadRemoteTxPowerLevel(uint16_t connHandle, uint8_t phy);

Description

Requests the transmit power level used by the remote device on a specific connection.

Note

This command should only be used after receiving the BLE_GAP_EVT_FEATURE_EXCHANGE_COMPL event.

Events generated

BLE_GAP_EVT_TRANSMIT_POWER_REPORTING is generated to provide Tx power level information.

Parameters

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] phyThe PHY for which to request the power level. See Transmitter PHY type.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully issues the request for the remote device's transmit power level.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.