Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
519 stars 197 forks source link

Allow std::function as callback for AdsNotification #204

Open ccvca opened 1 year ago

ccvca commented 1 year ago

Implementation of #203

As AdsSyncAddDeviceNotificationReqEx must not be changed, I couldn't find any other solution than adapting AdsLib/AdsDevice.cpp.

PS: As I use this in my tooling, the other pull request of me #202 is also included. In case this is accepted, I can clean up and cherry-pick this.

Resolves: #203 and #142