Example usage for android.bluetooth.le ScanRecord getTxPowerLevel

List of usage examples for android.bluetooth.le ScanRecord getTxPowerLevel

Introduction

In this page you can find the example usage for android.bluetooth.le ScanRecord getTxPowerLevel.

Prototype

public int getTxPowerLevel() 

Source Link

Document

Returns the transmission power level of the packet in dBm.

Usage

From source file:com.forkingcode.bluetoothcompat.ScanRecordCompat.java

@TargetApi(Build.VERSION_CODES.LOLLIPOP)
ScanRecordCompat(ScanRecord record) {
    mServiceUuids = record.getServiceUuids();
    mManufacturerSpecificData = record.getManufacturerSpecificData();
    mServiceData = record.getServiceData();
    mDeviceName = record.getDeviceName();
    mAdvertiseFlags = record.getAdvertiseFlags();
    mTxPowerLevel = record.getTxPowerLevel();
    mBytes = record.getBytes();//  w  w w.j  a va  2 s .co  m
}