From 5574578ba1115a27259e2cf02853ed297dc250ce Mon Sep 17 00:00:00 2001 From: zhaohe Date: Fri, 17 May 2024 11:04:02 +0800 Subject: [PATCH] update --- README.md | 3 +++ protocol.md | 20 ++++++++++++++++++++ src/main.cpp | 1 - 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 protocol.md diff --git a/README.md b/README.md index c50f521..7468624 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,10 @@ 开始消毒 {"command":"startDisinfection","loglevel":12,"messageId":"startDisinfection","roomVolume":0} +导出记录 {"command":"exportDisinfectionRecord","keys":["2024-0516-094233","2024-0516-092446","2024-0516-092339"],"messageId":"exportDisinfectionRecord"} + + ``` diff --git a/protocol.md b/protocol.md new file mode 100644 index 0000000..6e18a54 --- /dev/null +++ b/protocol.md @@ -0,0 +1,20 @@ +# 测试指令 + +``` +ws://192.168.8.10:19001 + + +开始消毒 +{"command":"startDisinfection","loglevel":12,"messageId":"startDisinfection","roomVolume":0} + +导出记录 +{"command":"exportDisinfectionRecord","keys":["2024-0516-094233","2024-0516-092446","2024-0516-092339"],"messageId":"exportDisinfectionRecord"} + +读取设备状态 +{"command": "getState"} + +指示灯测试 +{"command": "TestPage_WarningLightCtrl","r": 0,"g": 0,"b": 0,"w": 0} + + +``` \ No newline at end of file diff --git a/src/main.cpp b/src/main.cpp index ae71e71..1a1b5c7 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -43,7 +43,6 @@ int Main::main(int argc, char *argv[]) { } else { g_in_test = true; } - g_in_test = true; logger->info("test_mode:{}:{}", test_mode, g_in_test); /**