CppExamples
CppExamples copied to clipboard
Collection of various C++ sample code for PLCnext Technology controllers.
Feature request for the Notification example: The NotificationManager’s GetAllKnownNotificationnameIds() and GetNotificationRegistration(nameId) can be used to query information about all registered notification types. This information could be added to the example.
The Dynamic Ports example lists the limitation that struct metadata is not generated automatically by the plcncli code generator. It turns out that the `//#typeinformation` comment can be used to...
[Section 6 of the Notification Example](https://github.com/PLCnext/CppExamples/tree/master/Examples/NotificationExample#part-6---viewing-notification-history) suggests that historical notifications can be read directly from a sqlite database. The suggested approach is actually to use the [NotificationLogger RSC service](https://api.plcnext.help/api_docs_2023-3/classArp_1_1Services_1_1NotificationLogger_1_1Services_1_1INotificationLoggerService2.html), which...
It would be interesting to include an example of how to trigger a User Event Task, as discussed here: https://www.plcnext-community.net/forum/#/discussion/497/user-event-task
The DataAccess example should be extended to include more complex types, e.g. a struct containing an array and a struct containing a struct (internal ref #236386).
Following on from #38 , it turns out that **all** the data type definitions are now created automatically by the toolchain, so there is no need to create any PLCnext...
String ports are handled differently than primitive types when (for example) reading them from an RscVariant. Since Strings would be a fairly popular data type, the Data Access and Subscription...
In relation to the example "How to include an open-source library in your own C++ project", there is another example of including the NE10 library (and the JsonCpp library) here:...
In order for any project to be built using the generic instructions in the main README, all projects in this repository must conform to a specific structure. In the README...
In the Notification example, the spelling of the `GetValued()` method on the NetworkConfigurationChangedPayload class has now been fixed - there is a new method called `GetValue()` that does the same...