From 75e83be13a8c4ccf081c4dc07a262e4096783c7e Mon Sep 17 00:00:00 2001 From: 陈奇 <1650699704@qq.com> Date: Fri, 02 Nov 2018 17:34:21 +0800 Subject: [PATCH] [*]修改电磁版本 配合电子修改bug --- FastBleLib/src/main/java/com/clj/fastble/conn/BleConnector.java | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) diff --git a/FastBleLib/src/main/java/com/clj/fastble/conn/BleConnector.java b/FastBleLib/src/main/java/com/clj/fastble/conn/BleConnector.java index 33a3d7a..39a8596 100644 --- a/FastBleLib/src/main/java/com/clj/fastble/conn/BleConnector.java +++ b/FastBleLib/src/main/java/com/clj/fastble/conn/BleConnector.java @@ -361,15 +361,12 @@ handler.removeMessages(MSG_NOTIFY_CHA, this); } + if (characteristic.getUuid().equals(UUID.fromString(uuid_notify))) { + System.out.println("chenqi Notify ->" + characteristic.getValue().length); + System.out.println("chenqi Notify Hex ->" + BleBluetooth.dumpHex(characteristic.getValue())); bleCallback.onSuccess(characteristic); } - } - - @Override - public void onMtuChanged(BluetoothGatt gatt, int mtu, int status) { - super.onMtuChanged(gatt, mtu, status); - System.out.println(String.format("onMtuChanged���mtu = %s", mtu)); } }); -- Gitblit v1.8.0