mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
added rx2 test for heap checking
This commit is contained in:
@@ -207,8 +207,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & command) {
|
|||||||
EMSESP::add_device(0x18, 157, version, EMSdevice::Brand::BOSCH); // Bosch CR100 - https://github.com/proddy/EMS-ESP/issues/355
|
EMSESP::add_device(0x18, 157, version, EMSdevice::Brand::BOSCH); // Bosch CR100 - https://github.com/proddy/EMS-ESP/issues/355
|
||||||
|
|
||||||
// RCPLUSStatusMessage_HC1(0x01A5)
|
// RCPLUSStatusMessage_HC1(0x01A5)
|
||||||
|
// TODO move back - check heap usuage
|
||||||
// uart_telegram({0x98, 0x00, 0xFF, 0x00, 0x01, 0xA5, 0x00, 0xCF, 0x21, 0x2E, 0x00, 0x00, 0x2E, 0x24,
|
// uart_telegram({0x98, 0x00, 0xFF, 0x00, 0x01, 0xA5, 0x00, 0xCF, 0x21, 0x2E, 0x00, 0x00, 0x2E, 0x24,
|
||||||
// 0x03, 0x25, 0x03, 0x03, 0x01, 0x03, 0x25, 0x00, 0xC8, 0x00, 0x00, 0x11, 0x01, 0x03});
|
// 0x03, 0x25, 0x03, 0x03, 0x01, 0x03, 0x25, 0x00, 0xC8, 0x00, 0x00, 0x11, 0x01, 0x03});
|
||||||
|
|
||||||
shell.loop_all();
|
shell.loop_all();
|
||||||
}
|
}
|
||||||
@@ -349,6 +350,13 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & command) {
|
|||||||
EMSESP::txservice_.send(); // send it to UART
|
EMSESP::txservice_.send(); // send it to UART
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (command == "rx2") {
|
||||||
|
shell.printfln(F("Testing Rx2..."));
|
||||||
|
for (uint8_t i = 0; i < 30; i++) {
|
||||||
|
uart_telegram({0x08, 0x0B, 0x33, 0x00, 0x08, 0xFF, 0x34, 0xFB, 0x00, 0x28, 0x00, 0x00, 0x46, 0x00, 0xFF, 0xFF, 0x00});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (command == "rx") {
|
if (command == "rx") {
|
||||||
shell.printfln(F("Testing Rx..."));
|
shell.printfln(F("Testing Rx..."));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user