From 046b44372d25c7bd6fe78e5cf6e5176a1979f437 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Wed, 25 Sep 2019 09:46:35 +0200 Subject: [PATCH] java binding: use getATTStatus instead of getStatus for GATTEventQueryComplete --- .../binding/java/example/com/bluekitchen/GATTClientTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/daemon/binding/java/example/com/bluekitchen/GATTClientTest.java b/platform/daemon/binding/java/example/com/bluekitchen/GATTClientTest.java index 350be7dd7..7308a4a33 100644 --- a/platform/daemon/binding/java/example/com/bluekitchen/GATTClientTest.java +++ b/platform/daemon/binding/java/example/com/bluekitchen/GATTClientTest.java @@ -69,7 +69,7 @@ public class GATTClientTest implements PacketHandler { if (packet instanceof GATTEventQueryComplete){ GATTEventQueryComplete event = (GATTEventQueryComplete) packet; System.out.println(testAddr + " battery data"); - if (event.getStatus() != 0){ + if (event.getATTStatus() != 0){ System.out.println("Battery data could not be read.\nRestart scanning."); state = STATE.w4_scan_result; btstack.GAPLEScanStart();