From 9e0640a1f7e7e16352cb19869a2dda7acc01e04a Mon Sep 17 00:00:00 2001 From: proddy Date: Fri, 27 Nov 2020 20:52:42 +0100 Subject: [PATCH] command tests --- src/test/test.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/test.cpp b/src/test/test.cpp index 321f5cc39..911f5d8bb 100644 --- a/src/test/test.cpp +++ b/src/test/test.cpp @@ -724,6 +724,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) { EMSESP::mqtt_.incoming("ems-esp/system", "{\"cmd\":\"info\"}"); // this should fail + EMSESP::mqtt_.incoming("ems-esp/thermostat", "{\"cmd\":\"temp\",\"data\":23.45}"); // this should work just fine + EMSESP::mqtt_.incoming("ems-esp/thermostat", "{\"cmd\":\"TeMP\",\"data\":23.45}"); // test mix cased cmd + EMSESP::mqtt_.incoming("ems-esp/thermostat_hc1", "20"); shell.invoke_command("call thermostat wwmode"); // should do nothing