From b6f4dfdeb248df9e18a9598c1287a84435cd753e Mon Sep 17 00:00:00 2001 From: zwsd Date: Mon, 11 Jul 2022 20:14:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E4=B8=8D=E5=90=8C=E7=9A=84?= =?UTF-8?q?=E6=8C=87=E4=BB=A4=E9=AA=8C=E8=AF=81=EF=BC=8C=E8=BF=99=E6=97=B6?= =?UTF-8?q?=E5=80=99=E6=88=91=E8=A7=89=E5=BE=97=E6=9C=89=E4=B8=AA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=9A=E6=8C=87=E4=BB=A4=E5=AF=B9=E4=BA=86=EF=BC=8C?= =?UTF-8?q?=E5=85=B6=E4=BB=96=E5=8F=82=E6=95=B0=E6=B2=A1=E4=BC=A0=E6=88=96?= =?UTF-8?q?=E8=80=85=E4=BC=A0=E8=BE=93=E9=94=99=E4=BA=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/gatts_demo.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main/gatts_demo.c b/main/gatts_demo.c index 10c9809..86af576 100644 --- a/main/gatts_demo.c +++ b/main/gatts_demo.c @@ -940,6 +940,18 @@ void bluetooth_gatts_try_process_data() if (parse_json_to_struct(json_tmp->child)) { ESP_LOGI(GATTS_TAG, "order:%s ,index:%d speedLevel:%d position:%f direction:%d", s_bluetooth_processer.order, s_bluetooth_processer.index, s_bluetooth_processer.speed_level, s_bluetooth_processer.position, s_bluetooth_processer.direction); + if (strcmp(s_bluetooth_processer.order, "setPosition") == 0) + { + ESP_LOGI(GATTS_TAG, "setPosition"); + } + if (strcmp(s_bluetooth_processer.order, "getStatus") == 0) + { + ESP_LOGI(GATTS_TAG, "getStatus"); + } + if (strcmp(s_bluetooth_processer.order, "deviceStatusReport") == 0) + { + ESP_LOGI(GATTS_TAG, "deviceStatusReport"); + } } }