Thanks Evgeny.
I will look into it. It's just that the NXP app seems to work so well. I just figured out how to read the battery characteristic, let me see if the rest can just be read the same way.
Log output:
W/BluetoothGatt: onCharacteristicRead() - Device=00:04:9F:00:00:02 handle=25 Status=0
D/onCharacteristicRead: Battery level: 93
am using this code:
private static final UUID Battery_Service_UUID = UUID.fromString("0000180F-0000-1000-8000-00805f9b34fb");
private static final UUID Battery_Level_UUID = UUID.fromString("00002a19-0000-1000-8000-00805f9b34fb");
BluetoothGattService Battservice = gatt.getService(Battery_Service_UUID);
BluetoothGattCharacteristic BattLevel = Battservice.getCharacteristic(Battery_Level_UUID);
@Override
public void onCharacteristicRead(BluetoothGatt gatt,
BluetoothGattCharacteristic
characteristic, int status) {
if(status==BluetoothGatt.GATT_SUCCESS) {
Log.d("onCharacteristicRead", "Battery level: " + characteristic.getIntValue(BluetoothGattCharacteristic.FORMAT_UINT8, 0));
}
}