| | |
| | | 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)); |
| | | } |
| | | }); |
| | | |