List of usage examples for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8
int FORMAT_SINT8
To view the source code for android.bluetooth BluetoothGattCharacteristic FORMAT_SINT8.
Click Source Link
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; }