| 42 | } |
| 43 | |
| 44 | static 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 | |
| 58 | static void readExample(std::ostream &out, const AdsDevice &route) |
| 59 | { |