From f9e501be2c9e17e83f27788c225ed766a0de2631 Mon Sep 17 00:00:00 2001 From: chenxin Date: Wed, 2 Jul 2025 09:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=BB=BAdev=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.cpp | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) 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");