Partager via


ScanRecord.TxPowerLevel Property

Definition

Returns the transmission power level of the packet in dBm.

public int TxPowerLevel { [Android.Runtime.Register("getTxPowerLevel", "()I", "")] get; }
[<get: Android.Runtime.Register("getTxPowerLevel", "()I", "")>]
member this.TxPowerLevel : int

Property Value

Attributes

Remarks

Returns the transmission power level of the packet in dBm. Returns Integer#MIN_VALUE if the field is not set. This value can be used to calculate the path loss of a received packet using the following equation:

pathloss = txPowerLevel - rssi

Java documentation for android.bluetooth.le.ScanRecord.getTxPowerLevel().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to