| 30 | } |
| 31 | |
| 32 | static 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 | |
| 44 | static void notificationByNameExample(std::ostream &out, const AdsDevice &route) |
| 45 | { |