Commit Graph

13 Commits

Author SHA1 Message Date
Franz Hollerer 84f499b932 Server tutorial: change variable running to static volatile (see Issue … …#2683 (#2684) 2019-04-29 22:21:52 +02:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02:00
Stefan Profanter 63f3653ff1 Additional header cleanup and consistent name of ns generated files 2019-03-21 20:16:31 +01:00
Julius Pfrommer c9c818868f Move header files to a more unix-like structure
This commit drops the 'ua_' prefix and changes the public includes
to the form `#include <open62541/server.h>` instead of the old
`#include <ua_server.h>`
2019-03-21 20:16:31 +01:00
Stefan Profanter f295562a11 Untabify
Used command:
`find . \( -name '*.c' -o -name '*.h' \) -not \( -path "./deps/*" -prune \) ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;`
2019-03-14 16:44:34 +01:00
Frank Meerkoetter 1648fb8aaa Use EXIT_SUCCESS/FAILURE for the examples
Make use of EXIT_SUCCESS and EXIT_FAILURE from stdlib.h.
The previous approach of returning a value from UA_StatusCode
was often broken as an exit code can (portably) only be between 0 and 125.
2019-02-09 09:34:46 +01:00
Stefan Profanter d715db1057 Stack: Use non-amalgamated headers in all the examples
For consistency we recommend using non-amalgamation install, thus the
examples should also use the non-amalgamated headers.
2018-12-17 22:40:07 +01:00
Ari 6c4594f54c Elaborate on "mandatory" event fields
Change a few lines in documentation and example to point out the
necessity of the Time field if events should be monitored using UAExpert.
2018-08-28 23:10:56 +02:00
Sameer AL-Qadasi 1d091f490c add EventFields 'Time' and 'SourceName' in server events tutorial to show Events in UaExpert (#1996)
UaExpert Client needs the mandatory EventField 'Time' to show the events on Event View.
2018-08-21 15:35:08 +02:00
Jose Cabral 1605455a74 Fixes #1925 and clean examples 2018-07-25 08:17:51 +02:00
Julius Pfrommer 71e9a44d1a Use UA_Server_writeObjectProperty for the events tutorial 2018-05-25 16:04:31 +02:00
Julius Pfrommer ca26ad318f Small improvements to the server-side events tutorial 2018-05-25 16:04:31 +02:00
Ari 81a1ed350e [FEATURE] First implementation of events (#1739)
* implement a first version of events

events are briefly stored as nodes, enabling the developer to easily set attributes. Upon triggering the event the filter is immediately applied

* added copyright

* various fixes for events

proper license, full function names in comments and small improvements to comprehension in tutorial_server_events.c. Added a message for when an EventFiler cant be malloc'd. Name improvement for the lists generated by callForEachChild. Events no longer have a name and description. Declared methods only used in subscription_events.c as static.

* further fixes for events

Rename UA_ENABLE_EVENTS to UA_ENABLE_SUBSCRIPTION_EVENTS. Do not #include <queue.h> in ua_plugin_nodestore.h. Ensure either ChangeNotify or EventNotify are being passed to a monitored item. Traded several pointers for their actual objects. Added constness to the public API. Events can only be enabled together with subscriptions and the full ns0

* Fix problems being caused in check_client_subscriptions

* even more fixes for events

removed useless backslashes for the monitoredItemList declaration, moved comment outside of the define for UA_EVENT_ATTRIBUTES, added UA_EXPORT to the declaration of UA_Server_createEvent and UA_Server_triggerEvent, renamed outId to outEventId, fixed up argument definitions for the functions, moved the generation of the overflow event to server_ns0.c, added catches for NULL as return parameters, EventId is returned in createEvent. Fixed up tutorial.

* solve merge conflicts

* fixup api
2018-05-23 17:42:08 +02:00