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