新建dev分支

This commit is contained in:
2025-07-02 09:18:01 +08:00
parent c9383ce175
commit f9e501be2c

View File

@ -261,26 +261,12 @@ void sendStringResponse(const char* response) {
} }
void handle_cfg_cmd() { void handle_cfg_cmd() {
DebugSerial.println("Configuration requested"); DebugSerial.println("cfg requested");
Serial.println("cfg\n"); Serial.println("cfg\n");
// 返回配置相关信息 // 返回配置相关信息
sendJsonResponse("cfg", "OK"); 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() { void handle_dev_cmd() {
DebugSerial.println("dev_requested"); DebugSerial.println("dev_requested");
Serial.println("dev\n"); Serial.println("dev\n");