aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2020-06-25 01:50:20 +0200
committerSven Gothel <[email protected]>2020-06-25 01:50:20 +0200
commite848c9b32aecf2cd263da622b9030960389426fa (patch)
tree0be721e1f73da1e35a710eea88f23275a5e3d7e6
parenta78965ca7904574e259672e0ae50bbb932343f29 (diff)
BluetoothDevice pingGATT() non implementation shall return true, as false shall lead to aborting the application process.v2.1.7
-rw-r--r--java/org/tinyb/BluetoothDevice.java2
-rw-r--r--java/tinyb/dbus/DBusDevice.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/org/tinyb/BluetoothDevice.java b/java/org/tinyb/BluetoothDevice.java
index d693eb6b..dd754c1a 100644
--- a/java/org/tinyb/BluetoothDevice.java
+++ b/java/org/tinyb/BluetoothDevice.java
@@ -149,7 +149,7 @@ public interface BluetoothDevice extends BluetoothObject
* In case the device is no more reachable, disconnect will be initiated due to the occurring IO error.
* </p>
*
- * @return {@code true} if successful, otherwise false in case no GATT services exists etc.
+ * @return {@code true} if successful or not implemented, otherwise false in case GATT connection failed.
* @since 2.0.0
*/
boolean pingGATT();
diff --git a/java/tinyb/dbus/DBusDevice.java b/java/tinyb/dbus/DBusDevice.java
index 09524836..19d33aa6 100644
--- a/java/tinyb/dbus/DBusDevice.java
+++ b/java/tinyb/dbus/DBusDevice.java
@@ -106,7 +106,7 @@ public class DBusDevice extends DBusObject implements BluetoothDevice
public native List<BluetoothGattService> getServices();
@Override
- public boolean pingGATT() { return false; } // FIXME
+ public boolean pingGATT() { return true; } // FIXME
/* D-Bus property accessors: */