diff --git a/src/main.cpp b/src/main.cpp index f71c8e4..aecc9ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -261,26 +261,12 @@ void sendStringResponse(const char* response) { } void handle_cfg_cmd() { - DebugSerial.println("Configuration requested"); + DebugSerial.println("cfg requested"); Serial.println("cfg\n"); // 返回配置相关信息 sendJsonResponse("cfg", "OK"); } -// void handle_dev_cmd() { -// DebugSerial.println("dev_requested"); -// Serial.println("dev\n"); - -// //test VSMD数据 -// uint8_t testData[] = { -// 0xFF, 0x00, 0x01, 0x56, 0x53, 0x4D, 0x44, 0x31, 0x34, 0x32, 0x2D, 0x30, 0x32, 0x35, 0x54, 0x2D, 0x31, 0x2E, 0x31, 0x2E, 0x30, 0x32, 0x30, 0x2E, 0x32, 0x31, 0x31, 0x31, 0x31, 0x35, 0x00, 0x42, 0xFE -// }; -// // 解析 -// DebugSerial.println("Parsing VSMD test data:"); -// parser.parse(testData, sizeof(testData)); -// // 返回设备相关信息 -// sendJsonResponse("dev", "OK"); -// } void handle_dev_cmd() { DebugSerial.println("dev_requested"); Serial.println("dev\n");