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

Function notificationByNameExample

example/example.cpp:44–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42}
43
44static void notificationByNameExample(std::ostream &out, const AdsDevice &route)
45{
46 const AdsNotificationAttrib attrib = {
47 sizeof(ExampleDatatype), ADSTRANS_SERVERCYCLE, 0, { 4000000 }
48 };
49
50 out << __FUNCTION__ << "():\n";
51 AdsNotification notification{ route, "MAIN.byByte[4]", attrib,
52 &NotifyCallback, 0xBEEFDEAD };
53
54 out << "Hit ENTER to stop by name notifications\n";
55 std::cin.ignore();
56}
57
58static void readExample(std::ostream &out, const AdsDevice &route)
59{

Callers 1

runExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected