System.Bluetooth.TBluetoothLEAdvertiseData.TxPowerLevel

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property TxPowerLevel: Integer read GetTxPowerLevel write SetTxPowerLevel;

C++

__property int TxPowerLevel = {read=GetTxPowerLevel, write=SetTxPowerLevel, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEAdvertiseData

Description

Transmitted power level in dBm of the advertising data.

You can use the transmitted power level to calculate path loss on received advertising data:

path loss = TxPowerLevel - RSSI

For more information, see the Bluetooth Core Specification Supplement, Part A, section 1.5.

Exceptions

Exception Message Scenarios
EBluetoothLEAdvertiseDataException Need at least Android 5 (API 21)
  • Your device runs a version of Android that does not support Bluetooth LE advertising.

See Also