Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <bt_sock.h>
Link against: bluetooth.lib

Class CBluetoothPhysicalLinkMetrics

class CBluetoothPhysicalLinkMetrics : public CBase;

Description

Class to subscribe to physical link metrics

Derivation

Members

Defined in CBluetoothPhysicalLinkMetrics:

Inherited from CBase:


Construction and destruction


NewL(MBluetoothPhysicalLinkMetricsObserver &,RSocketServ &,RSocket &)

IMPORT_C static CBluetoothPhysicalLinkMetrics* NewL(MBluetoothPhysicalLinkMetricsObserver &aObserver, RSocketServ &aSockServ, RSocket &aConnectedSocket);

Description

Creates a new CBluetoothPhysicalLinkMetrics object from a connected socket

Parameters

MBluetoothPhysicalLinkMetricsObserver &aObserver

The object which will receive asynchronous events

RSocketServ &aSockServ

A handle to an existing session on the socket server (ESock).

RSocket &aConnectedSocket

An open connected socket (ESock subsession) on that existing ESock session

Return value

CBluetoothPhysicalLinkMetrics *


NewL(MBluetoothPhysicalLinkMetricsObserver &,RSocketServ &,const TBTDevAddr &)

IMPORT_C static CBluetoothPhysicalLinkMetrics* NewL(MBluetoothPhysicalLinkMetricsObserver &aObserver, RSocketServ &aSockServ, const TBTDevAddr &aAddr);

Description

Creates a new CBluetoothPhysicalLinkMetrics object from a connected socket

Parameters

MBluetoothPhysicalLinkMetricsObserver &aObserver

The object which will receive asynchronous events

RSocketServ &aSockServ

A handle to an existing session on the socket server (ESock).

const TBTDevAddr &aAddr

The Bluetooth address of a remote device with which there is an existing connection

Return value

CBluetoothPhysicalLinkMetrics *


~CBluetoothPhysicalLinkMetrics()

IMPORT_C ~CBluetoothPhysicalLinkMetrics();

Description

Destructor

[Top]


Member functions


SubscribeRssi()

IMPORT_C void SubscribeRssi();

Description

Subscribes for notification of changes to the RSSI (Received Signal Strengh Indication) of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoRssiChanged(TInt8) 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


SubscribeLinkQuality()

IMPORT_C void SubscribeLinkQuality();

Description

Subscribes for notification of changes to the Link Quality. MBluetoothPhysicalLinkMetricsObserver::MbplmoLinkQualityChanged(TUint8) 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


SubscribeFailedContactCounter()

IMPORT_C void SubscribeFailedContactCounter();

Description

Subscribes for notification of changes to the Failed Contact counter of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoFailedContactCounterChanged(TUint16) 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


SubscribeTransmitPowerLevel()

IMPORT_C void SubscribeTransmitPowerLevel();

Description

Subscribes for notification of changes to the Transmit Power Level of the link. MBluetoothPhysicalLinkMetricsObserver::MbplmoTransmitPowerLevelChanged(TInt8) 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


Cancel()

IMPORT_C void Cancel();

Description

Cancels subscriptions to all physical link notifications.