This commit is contained in:
Timur A. Fatkhullin
2024-10-06 23:12:22 +03:00
parent 3e19ca4dd6
commit 8bcc8edbb0
3 changed files with 244 additions and 10 deletions

View File

@@ -6,6 +6,7 @@
// #include "../common/adc_utils.h"
// #include "../net/adc_netmessage.h"
#include "../net/adc_device_netmsg.h"
#include "../net/adc_endpoint.h"
#include "../net/adc_netmsg.h"
@@ -80,6 +81,18 @@ TEST_CASE("[ADC NET MESSAGE]")
ept.setEndpoint(ee);
std::cout << "EPT: [" << ept.endpoint() << "]\n";
std::string bs = " SET EXP 1.24 0.23652 9.765432 ";
std::cout << "BS: {" << bs << "}\n";
AdcDeviceNetMessage md(bs);
std::cout << "KEY = {" << md.keyword() << "}\n";
std::cout << "KEY = {" << md.key() << "}\n";
for (auto& pp : md.params(1, 2)) {
std::cout << "PAR: " << pp << "\n";
}
}
/*