...
This commit is contained in:
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user