From ec8b75e18b2fabadd23f60539ee5fdfb76bd6c1f Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 28 May 2020 06:10:14 +0200 Subject: DBTGattCharacteristic: Added commented out code to detect notify/indicate properties --- java/direct_bt/tinyb/DBTGattCharacteristic.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'java/direct_bt') diff --git a/java/direct_bt/tinyb/DBTGattCharacteristic.java b/java/direct_bt/tinyb/DBTGattCharacteristic.java index 944167ef..ad92d226 100644 --- a/java/direct_bt/tinyb/DBTGattCharacteristic.java +++ b/java/direct_bt/tinyb/DBTGattCharacteristic.java @@ -54,6 +54,8 @@ public class DBTGattCharacteristic extends DBTObject implements BluetoothGattCha /* Characteristics Property */ private final String[] properties; + // private final boolean hasNotify; + // private final boolean hasIndicate; /* Characteristics Value Type UUID */ private final String value_type_uuid; @@ -132,7 +134,23 @@ public class DBTGattCharacteristic extends DBTObject implements BluetoothGattCha super(nativeInstance, handle /* hash */); this.service = service; this.handle = handle; + this.properties = properties; + /** { + boolean hasNotify = false; + boolean hasIndicate = false; + for(int i=0; !hasNotify && !hasIndicate && i