MCPcopy Create free account
hub / github.com/Beckhoff/ADS / readStateExample

Function readStateExample

example/example.cpp:104–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static void readStateExample(std::ostream &out, const AdsDevice &route)
105{
106 const auto state = route.GetState();
107
108 out << "ADS state: " << std::dec << (uint16_t)state.ads
109 << " devState: " << std::dec << (uint16_t)state.device << '\n';
110}
111
112static void runExample(std::ostream &out)
113{

Callers 1

runExampleFunction · 0.85

Calls 1

GetStateMethod · 0.80

Tested by

no test coverage detected