Skip to content

Allow std::function as callback for AdsNotification#204

Draft
ccvca wants to merge 2 commits intoBeckhoff:masterfrom
ccvca:func_cb
Draft

Allow std::function as callback for AdsNotification#204
ccvca wants to merge 2 commits intoBeckhoff:masterfrom
ccvca:func_cb

Conversation

@ccvca
Copy link
Contributor

@ccvca ccvca commented Jun 13, 2023

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

ccvca added 2 commits May 30, 2023 08:53
Use the library like so:

find_package(Threads REQUIRED)
find_package(ads REQUIRED)

add_executable(myAdsApp myAdsApp.cpp)
target_link_libraries(myAdsApp ads::ads)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use std::function for callback

1 participant