Hello,
My C++ knowledge is not good enough to decode AdsVariable. In the example
static void readByNameExample(std::ostream& out, const AdsDevice& route)
{
AdsVariable<uint8_t> readVar {route, ".StevPalet"};
out << __FUNCTION__ << "():\n";
for (size_t i = 0; i < 8; ++i) {
out << "ADS read " << std::hex << (uint32_t)readVar << '\n';
}
}
This example works, but how do I decode return data if my request is for variable type of bool, int, real?
Thank you very much for help
Regards
Bojan
Hello,
My C++ knowledge is not good enough to decode AdsVariable. In the example
static void readByNameExample(std::ostream& out, const AdsDevice& route)
{
AdsVariable<uint8_t> readVar {route, ".StevPalet"};
}
This example works, but how do I decode return data if my request is for variable type of bool, int, real?
Thank you very much for help
Regards
Bojan