31 Commits

Author SHA1 Message Date
Julius Pfrommer 705801a55c refactor(examples): Use the NS0ID shorthand in the examples 2024-07-26 08:30:16 +02:00
Julius Pfrommer 4b8ec01827 refactor(examples): Use UA_Server_runUntilInterrupt in examples 2023-01-15 17:34:17 +01:00
Julius Pfrommer fd08d012d9 Server: Initialize the config in the server 2019-04-23 00:41:32 +02: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
Julius Pfrommer eb9409b435 Examples: Use _clear instead of _deleteMembers for the examples 2018-12-09 19:40:02 +01:00
Julius Pfrommer 89f728aee1 Logging: Make logging a proper plugin with state and cleanup method 2018-12-04 18:39:12 +01:00
Jose Cabral 1605455a74 Fixes #1925 and clean examples 2018-07-25 08:17:51 +02:00
Stefan Profanter 61f5018854 Merge remote-tracking branch 'upstream/master' into hotfix/localeid
# Conflicts:
#	examples/client.c
#	examples/discovery/server_multicast.c
#	examples/discovery/server_register.c
#	examples/server.c
#	examples/server_inheritance.c
#	examples/tutorial_server_datasource.c
#	examples/tutorial_server_variabletype.c
2017-09-07 10:28:44 +02:00
Julius Pfrommer 215b077f57 use _default attributes in all examples 2017-09-06 01:08:05 +02:00
Jonas Green 7a58e6c0a5 Corrected format of LocaleId in LocalizedText attributes
The LocaleIds was formatted with an underscore as separator between
the language and region. According to the OPC UA specification the
language and the region shall be separated by a hyphen.
Also removed LocaleId in those cases where a specific language is not
addressed, i.e. when presenting a type name.
2017-08-29 10:08:15 +02:00
Infinity95 a8012d3040 endpoints in the server config; new/delete functions for the server config 2017-08-15 09:52:34 +02:00
Julius Pfrommer ce6f56c348 use amalgamated header for the examples 2017-02-09 23:07:10 +01:00
Julius Pfrommer 54daafd37a rename plugins to begin with ua_ 2016-06-27 07:16:33 +02:00
Julius Pfrommer 5e87c1db68 move logger and connection-function into the client config (#585)
* move logger and connection-function into the client config;
move the standard config definition into a plugin

* remove redundant definition from example servers
2016-04-19 21:38:54 +02:00
Julius Pfrommer 34dafb78ce Use the less noisy C99 true/false throughout. But keep the UA_TRUE/UA_FALSE macros for compatibility 2016-02-29 18:28:23 +01:00
Julius Pfrommer 2ae7fef1e4 add Wshadow and Wconversion compiler flags; fix all warnings; networklayer takes the logger from the server at startup 2016-01-27 00:19:42 +01:00
ichrispa 39c508f886 Fixed server.cpp, still using old addVariable method (travis 3184 failed). 2016-01-13 17:23:10 +01:00
Julius Pfrommer 53d67b4140 single server config struct 2016-01-06 14:17:50 +01:00
Julius Pfrommer 47749e1045 add many log messages for log-level DEBUG. simplify stdout logger 2015-10-15 17:51:49 +02:00
Julius Pfrommer 49946cd989 fix cpp 2015-10-08 08:07:20 +02:00
Julius Pfrommer 5ad3ae3d7a fix the cpp server example 2015-10-05 06:53:58 +02:00
Julius Pfrommer c9dd3305bf fix cpp example; improve inline type functions 2015-10-05 03:44:56 +02:00
Julius Pfrommer 989aea3972 align server.cpp with the new addnodes API 2015-09-11 10:40:56 +02:00
Stasik0 5ebece8c79 fixing cxx example 2015-05-09 20:43:37 +02:00
Julius Pfrommer e0615114e7 auto-create ns1 with the servers application URI 2015-05-04 11:42:43 +02:00
Julius Pfrommer cf33d08b7d changing some macros to reenable the library for c++ 2015-04-29 01:08:35 +02:00
Julius Pfrommer 6423239137 let users add their custom namespaces 2015-04-11 14:43:37 +02:00
Julius Pfrommer 5f393b5309 fix udp, c++ server 2015-04-07 11:15:22 +02:00
Julius Pfrommer 72eb13bbfa more API improvements 2015-03-25 10:34:22 +01:00
Julius Pfrommer a5162352b6 API improvements 2015-03-25 10:23:39 +01:00
Julius Pfrommer d913c602e3 add c++ example server 2015-02-25 12:31:28 +01:00