#include <bt_sock.h>
class CBluetoothPhysicalLinkMetrics : public CBase |
Public Member Functions | |
---|---|
~CBluetoothPhysicalLinkMetrics() | |
IMPORT_C void | Cancel() |
void | FailedContactCounterChanged(TUint16) |
void | LinkQualityChanged(TUint8) |
IMPORT_C CBluetoothPhysicalLinkMetrics * | NewL(MBluetoothPhysicalLinkMetricsObserver &, RSocketServ &, RSocket &) |
IMPORT_C CBluetoothPhysicalLinkMetrics * | NewL(MBluetoothPhysicalLinkMetricsObserver &, RSocketServ &, const TBTDevAddr &) |
void | RssiChanged(TInt8) |
void | SubscribeError(TInt) |
IMPORT_C void | SubscribeFailedContactCounter() |
IMPORT_C void | SubscribeLinkQuality() |
IMPORT_C void | SubscribeRssi() |
IMPORT_C void | SubscribeTransmitPowerLevel() |
void | TransmitPowerLevelChanged(TInt8) |
Class to subscribe to physical link metrics
void | FailedContactCounterChanged | ( | TUint16 | aFailedContactCounter | ) |
IMPORT_C CBluetoothPhysicalLinkMetrics * | NewL | ( | MBluetoothPhysicalLinkMetricsObserver & | aObserver, |
RSocketServ & | aSockServ, | |||
RSocket & | aConnectedSocket | |||
) | [static] |
Creates a new CBluetoothPhysicalLinkMetrics object from a connected socket
Parameter | Description |
---|---|
aObserver | The object which will receive asynchronous events |
aSockServ | A handle to an existing session on the socket server (ESock). |
aConnectedSocket | An open connected socket (ESock subsession) on that existing ESock session |
IMPORT_C CBluetoothPhysicalLinkMetrics * | NewL | ( | MBluetoothPhysicalLinkMetricsObserver & | aObserver, |
RSocketServ & | aSockServ, | |||
const TBTDevAddr & | aAddr | |||
) | [static] |
Creates a new CBluetoothPhysicalLinkMetrics object from a connected socket
Parameter | Description |
---|---|
aObserver | The object which will receive asynchronous events |
aSockServ | A handle to an existing session on the socket server (ESock). |
aAddr | The Bluetooth address of a remote device with which there is an existing connection |
IMPORT_C void | SubscribeFailedContactCounter | ( | ) |
Subscribes for notification of changes to the Failed Contact counter of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoFailedContactCounterChanged will be called with the initial value, then subsequently every time the failed contact counter changes, subject to the polling interval specified in the stack. The stack will continue to run a timer to poll the hardware until the physical link is disconnected or CBluetoothPhysicalLinkMetrics::Cancel is called
IMPORT_C void | SubscribeLinkQuality | ( | ) |
Subscribes for notification of changes to the Link Quality. MBluetoothPhysicalLinkMetricsObserver::MbplmoLinkQualityChanged will be called with the initial value, then subsequently every time the link quality changes, subject to the polling interval specified in the stack. The stack will continue to run a timer to poll the hardware until the physical link is disconnected or CBluetoothPhysicalLinkMetrics::Cancel is called
IMPORT_C void | SubscribeRssi | ( | ) |
Subscribes for notification of changes to the RSSI (Received Signal Strengh Indication) of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoRssiChanged will be called with the initial value, then subsequently every time the RSSI changes, subject to the polling interval specified in the stack. The stack will continue to run a timer to poll the hardware until the physical link is disconnected or CBluetoothPhysicalLinkMetrics::Cancel is called
IMPORT_C void | SubscribeTransmitPowerLevel | ( | ) |
Subscribes for notification of changes to the Transmit Power Level of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoTransmitPowerLevelChanged will be called with the initial value, then subsequently every time the transmit power level changes, subject to the polling interval specified in the stack. The stack will continue to run a timer to poll the hardware until the physical link is disconnected or CBluetoothPhysicalLinkMetrics::Cancel is called