mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
command tests
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user