Notifications as an activity tracker
Hi All!
I want to use the notification manager as an extensive "activity tracker".
I'm still a bit fuzzy on this topic, so a bit of explanation of experts would certainly help!
As I understand, there are two parts of this.
The Notification Manager and the Notification Logger.
The Notification logger subscribes to the Notification Manger, filters the notifications and creates a database with the filtered notifications.
This database can be configured in a .xml and is named an archive? Like the one in /opt/plcnext/logs/default.sglite.
Let us say, I want to create a C++ program that "logs" different actions, corresponding to a boolean to the archive.
Could I create a C++ program that runs in the ESM that is connected to the out ports of other programs and sends a notification as soon as the value of this port get set to true?
The notification manager and logger would to the rest of the work for me?
Could you provide me with a example project or a code snipped?
I'll document my process and might distill it into a makersblog as I could not find one already and I think it is a very useful feature
With the kindest regards
Dries
Comments
Hi Dries,
I expect that you have already read this section of the Info Center:
https://www.plcnext.help/te/Service_Components/Notifications/Notification_manager.htm
For some reason that doesn't include a link to this tutorial / example, which is buried in our Github page:
https://github.com/PLCnext/CppExamples/tree/master/Examples/NotificationExample
(and which I am quite proud of!)
I hope that example explains how it all fits together, and perhaps that will help you decide if it suits you application.
~ Martin.
Hi Martin
Thanks!
As usual it is perfect
Dries