mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-08 00:39:50 +03:00
added test for unknown devices
This commit is contained in:
@@ -35,6 +35,15 @@ void EMSESP::run_test(uuid::console::Shell & shell, const std::string & command)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (command == "unknown2") {
|
||||||
|
// simulate getting version information back from an unknown device
|
||||||
|
uint8_t t[] = {0x09, 0x0B, 0x02, 0x00, 0x5A, 0x01, 0x02, 0x5A}; // product id is 90
|
||||||
|
rxservice_.add(t, sizeof(t));
|
||||||
|
rxservice_.loop();
|
||||||
|
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (command == "thermostats") {
|
if (command == "thermostats") {
|
||||||
shell.printfln(F("Testing adding devices on the EMS bus..."));
|
shell.printfln(F("Testing adding devices on the EMS bus..."));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user