Browse Source

根据不同的指令验证,这时候我觉得有个问题:指令对了,其他参数没传或者传输错了

master
zwsd 3 years ago
parent
commit
b6f4dfdeb2
  1. 12
      main/gatts_demo.c

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

Loading…
Cancel
Save