summaryrefslogtreecommitdiffstats
path: root/java/jau/direct_bt/DBTDevice.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-11-09 22:35:15 +0100
committerSven Gothel <[email protected]>2021-11-09 22:35:15 +0100
commitadb516575e7c336450b807de000851593d18a38b (patch)
tree37c6c329bc478ba7f125de0074b8aff50b86e569 /java/jau/direct_bt/DBTDevice.java
parent8e712c4c6868a34de29a9e84f26d03f0e627a5a1 (diff)
Add BTDevice::send[Indication|Notification]() (Java); Note: Sending zero length -> Skip sending and return true
Diffstat (limited to 'java/jau/direct_bt/DBTDevice.java')
-rw-r--r--java/jau/direct_bt/DBTDevice.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/java/jau/direct_bt/DBTDevice.java b/java/jau/direct_bt/DBTDevice.java
index 204e4f06..3f2f5b76 100644
--- a/java/jau/direct_bt/DBTDevice.java
+++ b/java/jau/direct_bt/DBTDevice.java
@@ -653,6 +653,12 @@ public class DBTDevice extends DBTObject implements BTDevice
private native List<BTGattService> getGattServicesImpl();
@Override
+ public native boolean sendNotification(final short char_value_handle, final byte[] value);
+
+ @Override
+ public native boolean sendIndication(final short char_value_handle, final byte[] value);
+
+ @Override
public boolean pingGATT() {
try {
return pingGATTImpl();