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

Function notificationExample

example/example.cpp:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32static void notificationExample(std::ostream &out, const AdsDevice &route)
33{
34 const AdsNotificationAttrib attrib = {
35 sizeof(ExampleDatatype), ADSTRANS_SERVERCYCLE, 0, { 4000000 }
36 };
37 AdsNotification notification{ route, 0x4020, 4,
38 attrib, &NotifyCallback, 0xDEADBEEF };
39
40 out << "Hit ENTER to stop notifications\n";
41 std::cin.ignore();
42}
43
44static void notificationByNameExample(std::ostream &out, const AdsDevice &route)
45{

Callers 1

runExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected