From d6cf4a19786d4b481f85c952de9f48a90a0c5aa4 Mon Sep 17 00:00:00 2001 From: sunxudong Date: Thu, 23 Apr 2020 10:43:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=20?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=86=85=E5=AE=B9=E6=B7=BB=E5=8A=A0backNameC?= =?UTF-8?q?ode=EF=BC=8C=E4=BD=9C=E4=B8=BA=E4=B8=AD=E4=BB=8B=E9=94=AE?= =?UTF-8?q?=EF=BC=8C=E5=85=85=E5=BD=93=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=9A=84Key=20=E5=8F=8D=E9=A6=88=E5=86=85=E5=AE=B9String?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=94=B9=E4=B8=BAbyte[],=E5=87=8F=E5=B0=91?= =?UTF-8?q?=E4=B8=AD=E9=97=B4=E8=BD=AC=E5=8C=96=E4=BA=A7=E7=94=9F=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AD=98=E6=B6=88=E8=80=97=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/inspectionProfiles/Project_Default.xml | 1 + app/build.gradle | 1 + .../java/org/sheedon/demo/MainActivity.java | 58 +++------ .../converters/CallbackRuleConverter.java | 19 ++- .../demo/converters/CheckDataConverter.java | 72 +++++------ .../demo/converters/DataConverterFactory.java | 5 +- serial/build.gradle | 4 +- .../org/sheedon/serial/AsyncCallImpl.java | 3 + .../org/sheedon/serial/DataConverter.java | 2 +- .../sheedon/serial/DataConverterFactory.java | 2 +- .../java/org/sheedon/serial/Dispatcher.java | 70 +++++------ .../java/org/sheedon/serial/ReadyTask.java | 10 +- .../java/org/sheedon/serial/RealCall.java | 5 + .../org/sheedon/serial/RealObservable.java | 10 +- .../main/java/org/sheedon/serial/Request.java | 29 +++++ .../java/org/sheedon/serial/ResponseBody.java | 32 ++--- .../org/sheedon/serial/SafetyByteBuffer.java | 114 ++++++++++++++++++ .../org/sheedon/serial/SerialRunnable.java | 10 +- .../sheedon/serial/internal/CharsUtils.java | 41 ++++++- .../sheedon/serial/serialport/SerialPort.java | 19 ++- 20 files changed, 341 insertions(+), 166 deletions(-) create mode 100644 serial/src/main/java/org/sheedon/serial/SafetyByteBuffer.java diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml index 01de7ef..fb47f26 100644 --- a/.idea/inspectionProfiles/Project_Default.xml +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -1,6 +1,7 @@