TwclBluetoothRadio.GetRemoteRssi(Int64,SByte) Method

Reads RSSI value from a remote device.

Namespace: wclBluetooth
public
 function GetRemoteRssi(const Address: Int64; out Rssi: SByte): Integer;

Parameters

Address
Type: Int64

The remote Bluetooth device's MAC address.

Rssi
Type: SByte

On output contains the RSSI value in dBm.

Return Value

Type: Integer

If the function succeed the return value is wclErrors.WCL_E_SUCCESS. Otherwise the method returns one of the WCL error codes.

Some devices require active connection to measure RSSI. If the method returns error an application can try to enumerate a device's services and immediately after that query RSSI once again.