Skip to content

Need help with AdsVariable #124

Description

@ideasoft-bz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions