aboutsummaryrefslogtreecommitdiffstats
path: root/examples/java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2021-02-06 23:15:04 +0100
committerSven Gothel <[email protected]>2021-02-06 23:15:04 +0100
commitbf295aed76be3521edc069d38f23d9171ed829d2 (patch)
treef08674153e0648eeeedd6a6bb15eaafb2e867ece /examples/java
parent058b16454e12cb347e083df3dde00d69d89f5f03 (diff)
Bump jaulib; Adapt to jau::bytesHexString(..) removed leading0X argument: Unifying output.
Having a leading `0x` always for MSB-First only, unifies the output and hence clarifies semantics of shown results. This is compatible with 'btmon' output.
Diffstat (limited to 'examples/java')
-rw-r--r--examples/java/DBTScanner10.java10
-rw-r--r--examples/java/ScannerTinyB00.java2
-rw-r--r--examples/java/ScannerTinyB01.java6
3 files changed, 9 insertions, 9 deletions
diff --git a/examples/java/DBTScanner10.java b/examples/java/DBTScanner10.java
index 039cc6cc..f27d11eb 100644
--- a/examples/java/DBTScanner10.java
+++ b/examples/java/DBTScanner10.java
@@ -514,14 +514,14 @@ public class DBTScanner10 {
public void notificationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp) {
println("****** PingPong GATT notificationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
}
@Override
public void indicationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp, final boolean confirmationSent) {
println("****** PingPong GATT indicationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
}
};
final boolean enabledState[] = { false, false };
@@ -545,7 +545,7 @@ public class DBTScanner10 {
public void notificationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp) {
println("****** GATT notificationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
shutdownTest();
}
@@ -554,7 +554,7 @@ public class DBTScanner10 {
public void indicationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp, final boolean confirmationSent) {
println("****** GATT indicationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
shutdownTest();
}
};
@@ -586,7 +586,7 @@ public class DBTScanner10 {
final String svalue = BTUtils.decodeUTF8String(value, 0, value.length);
if( !QUIET ) {
printf(" [%02d.%02d] CharVal: %s ('%s')\n",
- i, j, BTUtils.bytesHexString(value, 0, -1, true, true, true), svalue);
+ i, j, BTUtils.bytesHexString(value, 0, -1, true), svalue);
}
}
int k=0;
diff --git a/examples/java/ScannerTinyB00.java b/examples/java/ScannerTinyB00.java
index 7c9a7310..be34b609 100644
--- a/examples/java/ScannerTinyB00.java
+++ b/examples/java/ScannerTinyB00.java
@@ -274,7 +274,7 @@ public class ScannerTinyB00 {
if (c.getUUID().contains("2a23-")) {
final byte[] tempRaw = c.readValue();
- System.err.println(" System ID: " + BTUtils.bytesHexString(tempRaw, 0, -1, true, true, true));
+ System.err.println(" System ID: " + BTUtils.bytesHexString(tempRaw, 0, -1, true));
}
}
}
diff --git a/examples/java/ScannerTinyB01.java b/examples/java/ScannerTinyB01.java
index 07b4cac5..b817828c 100644
--- a/examples/java/ScannerTinyB01.java
+++ b/examples/java/ScannerTinyB01.java
@@ -349,14 +349,14 @@ public class ScannerTinyB01 {
public void notificationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp) {
System.err.println("****** GATT notificationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
}
@Override
public void indicationReceived(final BTGattChar charDecl,
final byte[] value, final long timestamp, final boolean confirmationSent) {
System.err.println("****** GATT indicationReceived: "+charDecl+
- ", value "+BTUtils.bytesHexString(value, 0, -1, true, true, true));
+ ", value "+BTUtils.bytesHexString(value, 0, -1, true));
}
};
final boolean addedCharacteristicListenerRes =
@@ -378,7 +378,7 @@ public class ScannerTinyB01 {
final byte[] value = serviceChar.readValue();
final String svalue = BTUtils.decodeUTF8String(value, 0, value.length);
System.err.printf(" [%02d.%02d] Value: %s ('%s')\n",
- i, j, BTUtils.bytesHexString(value, 0, -1, true, true, true), svalue);
+ i, j, BTUtils.bytesHexString(value, 0, -1, true), svalue);
} catch( final Exception ex) {
System.err.println("Caught "+ex.getMessage());
ex.printStackTrace();