|
|
@ -1,4 +1,5 @@ |
|
|
|
#include "ble_parse_data.h" |
|
|
|
#include "motor_drive.h" |
|
|
|
|
|
|
|
#define BLE_PARSE_DATA_TAG "BLE_PARSE_DATA" |
|
|
|
|
|
|
@ -32,17 +33,16 @@ void bluetooth_gatts_try_process_data() { |
|
|
|
if (strcmp(parse_bluetooth_processer->order, set_position) == 0) { |
|
|
|
ESP_LOGI(BLE_PARSE_DATA_TAG, set_position); |
|
|
|
// motor_cmd_set_position(parse_bluetooth_processer->speedLevel, parse_bluetooth_processer->position, parse_bluetooth_processer->direction); |
|
|
|
// receipt_json_set_position(); |
|
|
|
receipt_json_set_position(); |
|
|
|
} |
|
|
|
if (strcmp(parse_bluetooth_processer->order, get_status) == 0) { |
|
|
|
ESP_LOGI(BLE_PARSE_DATA_TAG, get_status); |
|
|
|
// receipt_json_get_status(); |
|
|
|
receipt_json_get_status(); |
|
|
|
} |
|
|
|
// if (strcmp(parse_bluetooth_processer->order, "deviceStatusReport") == 0) |
|
|
|
// { |
|
|
|
// ESP_LOGI(BLE_PARSE_DATA_TAG, "deviceStatusReport"); |
|
|
|
// } |
|
|
|
parse_bluetooth_processer->auto_report_flag = true; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|