test: Add data transfer and checks to protocol tests

This commit is contained in:
Alexey Rybalchenko
2023-06-13 11:53:49 +02:00
committed by Dennis Klein
parent f278e7e312
commit 3decac58fc
4 changed files with 58 additions and 15 deletions

View File

@@ -25,8 +25,12 @@ class Push : public Device
auto Run() -> void override
{
auto msg = NewMessage();
Send(msg, "data");
// empty message
auto msg1 = NewMessageFor("data", 0);
Send(msg1, "data");
// message with short text data
auto msg2(NewSimpleMessageFor("data", 0, "testdata1234"));
Send(msg2, "data");
};
};