Example usage for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8

List of usage examples for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8

Introduction

In this page you can find the example usage for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8.

Prototype

int FORMAT_SINT8

To view the source code for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8.

Click Source Link

Document

Characteristic value format type sint8

Usage

From source file:Main.java

/**
 * Returns the Transmission power information from the characteristic
 * /*from   ww w .j  a v a  2s. co m*/
 * @param characteristics
 * @return {@link integer}
 */
@SuppressLint("NewApi")
public static int getTransmissionPower(BluetoothGattCharacteristic characteristics) {
    int power_level = characteristics.getIntValue(BluetoothGattCharacteristic.FORMAT_SINT8, 0);
    return power_level;
}