135 Commits

Author SHA1 Message Date
Julius Pfrommer c84e43dcac Merge remote-tracking branch 'origin/1.5' into merge_15_master 2026-06-11 08:31:22 +02:00
Julius Pfrommer a58d6998c7 refactor(examples): Add note about NodeId string memory in browse example
Add a comment to the BrowseRequest example warning users not to use
UA_NODEID_STRING when the NodeId will be cleared by
UA_BrowseRequest_clear, since clearing will try to free the string
memory. Use UA_NODEID_STRING_ALLOC or UA_NodeId_copy instead.

Fixes #6777
2026-06-04 18:30:53 +02:00
Thorsten Lannynd dc33c82dcb feat(examples): client: allow configurable server
* Enable a remote server URL to be provided as an argument.
* Default to localhost if no arguments are provided.

Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
Signed-off-by: Thorsten Lannynd <t-lannynd@ti.com>
2026-05-14 16:10:46 +02:00
Julius Pfrommer f783c38106 refactor(examples): Cosmetic cleanup of examples/client.c 2026-04-17 22:54:45 -04:00
Julius Pfrommer 705801a55c refactor(examples): Use the NS0ID shorthand in the examples 2024-07-26 08:30:16 +02:00
Julius Pfrommer 928931ec36 refactor(core): Move architecture-specific definition out of the public headers 2023-07-28 21:42:56 +02:00
basyskom-dege 0f055942b7 feat(CI): Added support for arguments in the examples workflow (#5760)
* CI: Added support for arguments in the examples workflow

* Fixed memory leaks in examples. Add ApplicationUri

* Arguments and server/client for all examples. Small fixes

* outsource/blacklist some examples. Fix memory leak in example.

* Remove Shlex. Remove false UA_Client_delete

* Removed raw examples from ci. Fix leak in client.c and mqtt_publish

* Fix memory leak in mqtt subscriber
2023-07-02 02:58:40 +02:00
Julius Pfrommer 3dc93eaa90 refactor(examples): Return EXIT_SUCCESS for the valgrind run 2023-02-20 02:11:56 +01:00
Mark Giraud 3e5bb3a9a5 refactor: Use correct format specifiers 2021-07-01 16:41:00 +02:00
Julius Pfrommer d02dbfd9d6 fix(examples): Remove warnings in newer cppcheck versions 2021-01-04 11:20:23 +01:00
Julius Pfrommer cbde3c8803 refactor(client): Simplify the client connection API 2020-05-05 09:33:57 +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
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 b4c9fc37eb Client: Initialize client config inside the client structure
Temporarily disable encyrption
2019-01-30 18:45:42 +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
Julius Pfrommer eb9409b435 Examples: Use _clear instead of _deleteMembers for the examples 2018-12-09 19:40:02 +01:00
Jose Cabral 1605455a74 Fixes #1925 and clean examples 2018-07-25 08:17:51 +02:00
StalderT 047c5e4098 WIP client : timed async service & async highlevel functions with client worker for 0.4 (#1598)
This commit adds asynchronous services to open62541 on client side

* Asynchronous service (highlevel read/write) are available through the API that is defined in
ua_client_highlevel_async.h

* Besides the services, the connection procedure is asynchronous as well.

* A client Application that uses the asynchronous API 
adds requests by calling an asynchronous service (e.g., UA_Client_sendAsyncReadRequest(), UA_Client_sendAsyncBrowseRequest() )
checks for response with UA_Client_run_iterate() repeatedly
and processes the responses with user-defined callbacks
2018-05-15 10:54:15 +02:00
StalderT 1cd9c469e1 Use new client subscriptions API in examples 2018-02-18 13:00:21 +01:00
Julius Pfrommer 746ad7ede8 New Subscriptions and MonitoredItems Client API
Co-authored-by: StalderT <github@netsolux.ch>
2018-02-18 13:00:21 +01:00
StalderT b5dc40efef Add async subscription handling for the client 2018-02-18 13:00:21 +01:00
StalderT 65db398dcb add client to dataChangeHandler 2018-02-05 22:41:28 +01:00
StalderT 821d5fffdb fix client log 2018-01-25 15:01:45 +01:00
StalderT 7e30f66b0b fix if/while/for/switch typo 2018-01-22 22:00:55 +01:00
tbeu 983f956003 Fix typos 2017-12-13 09:15:49 +01:00
StalderT d96500feb0 adding samplingInterval to UA_Client_Subscriptions_addMonitoredItem (#1351)
* adding samplingInterval parameter to UA_Client_Subscriptions_addMonitoredEvent

* adding samplingInterval parameter

* adding samplingInterval parameter

* adding samplingInterval parameter
2017-11-14 15:42:19 +01: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 b1ebf84f24 fix building the client example without subscriptions 2017-07-25 00:18:28 +02:00
Julius Pfrommer 05820a2a1d Merge branch '0.2' 2017-04-14 19:04:52 +02:00
tbs2017 29f16f1ee6 Update client.c
ref->nodeId.nodeId.namespaceIndex is the interesting one, if one wants to work with the node found.
2017-04-06 16:43:16 +02:00
Julius Pfrommer ce6f56c348 use amalgamated header for the examples 2017-02-09 23:07:10 +01:00
Julius Pfrommer 714f75aaa6 cosmetic: cleanup examples 2016-10-06 02:27:57 +02:00
Julius Pfrommer 49cbe90286 fix: objecttypes must have hassubtype relation to parent in the client
example
2016-10-06 02:00:21 +02:00
Julius Pfrommer 33051eaed6 cleanup cmake (#681)
* cleanup cmake

* fix readspeed example

* adjust travis and appveyor; use static lib for release

* fix unit test build

* fix server path

* install check for analysis phase

* fix caching packages

* fix assignment

* fix if then

* fix a variable expansion

* add trace outputs to environment install

* more logging

* fixing.,.

* fix a rm

* fix a typo

* fix path

* notifications only for 0.2 and master

* add missing file

* clean osx before install

* fix notification setting

* fix python

* fix an unit test issue
2016-07-18 15:15:23 +02:00
Julius Pfrommer 95c65f19f0 use highlevel API for the readme example 2016-07-07 03:03:00 +02:00
Julius Pfrommer 54daafd37a rename plugins to begin with ua_ 2016-06-27 07:16:33 +02:00
Julius Pfrommer 24f5a886fc fix use of inttypes.h printf formatters in example 2016-05-31 14:09:16 +02:00
Julius Pfrommer 823dd17de6 remove magic numbers in client; improve logging 2016-05-28 01:54:19 +02:00
Julius Pfrommer 9eaeba6a8b cosmetic improvements 2016-05-23 15:25:20 +02:00
Julius Pfrommer 999bdef64a split the MessageTypeAndFinal type, cherry-picked from chunking_callback 2016-05-10 23:08:24 +02:00
Julius Pfrommer 2af51b18da Refactor subscriptions to use different sampling and response intervals for subscriptions and monitoreditems 2016-05-08 20:17:26 +02:00
Markus Graube 6d840cd836 Fix call to anonymous client connect 2016-04-27 11:34:54 +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 10263a4a64 still fixing printing size_t on mingw 2016-03-26 15:51:52 +01:00
Julius Pfrommer 57ef06572e platform-independent printing of size_t required 2016-03-26 15:36:39 +01:00
Julius Pfrommer 375e1c932f use mingw/msvc compatible printing of size_t 2016-03-26 14:15:27 +01:00