Commit Graph

131 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 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
ichrispa d354cf723f Also in terms of the symmetric API, the UA_Client_writeAttribute<X> function set appears to have vanished. UA_Client_writeAttributeValue was restored in accordance with @jpfr's new implementation. 2016-03-15 19:35:15 +01:00
ichrispa 3dcae4daea UA_Client_forEachChildNodeCall had somehow vanished from the otherwise symmetric API - and is now back. 2016-03-15 18:56:40 +01:00
Stasik0 d81279feb0 adding usernamepassword auth to client, fixing a username/pass struct bug in the server 2016-03-15 09:25:03 +01:00
Julius Pfrommer a6fbd5cf3a Merge of Pro's travis infrastructure migration
Closing #551 with this.

Squashed commit of the following:

commit 11f904349a
Author: Stefan Profanter <git@s.profanter.me>
Date:   Thu Mar 3 16:06:41 2016 +0100

    Caching install dir

commit fce4424439
Merge: 8eed598 559b88e
Author: Stefan Profanter <git@s.profanter.me>
Date:   Thu Mar 3 15:29:52 2016 +0100

    Merge remote-tracking branch 'upstream/master' and resolve conflicts

commit 8eed598e12
Author: Stefan Profanter <git@s.profanter.me>
Date:   Thu Mar 3 15:22:09 2016 +0100

    Use valgrind 3.11

commit 2def5858cd
Author: Stefan Profanter <git@s.profanter.me>
Date:   Wed Mar 2 08:32:01 2016 +0100

    Using -j8 flag for make

commit f75ea211d6
Merge: f0170c0 eb9b8e5
Author: Stefan Profanter <git@s.profanter.me>
Date:   Wed Mar 2 08:30:45 2016 +0100

    Merge remote-tracking branch 'upstream/simpify_amalgate'

commit eb9b8e5742
Author: Stasik0 <github@stasik.com>
Date:   Wed Mar 2 08:19:06 2016 +0100

    trying to make CMake simpler, by removing additional dependencies

commit f0170c06ea
Author: Stefan Profanter <git@s.profanter.me>
Date:   Wed Mar 2 00:08:58 2016 +0100

    Minor build fixes
    - Add amalgamation to server-static
    - Only switch to gcc-4.8 if gcc is used
    - Build coveralls only if gcc is used
    - cast return value in examples (causes clang to fail otherwise)

commit c1e0e40672
Author: Stefan Profanter <git@s.profanter.me>
Date:   Tue Mar 1 15:57:31 2016 +0100

    Cross compile only for gcc

commit eb8e7a2638
Author: Stefan Profanter <git@s.profanter.me>
Date:   Tue Mar 1 15:15:46 2016 +0100

    Allow ANALYZE=true builds to fail

commit e659d928bb
Author: Stefan Profanter <git@s.profanter.me>
Date:   Tue Mar 1 15:10:09 2016 +0100

    Using new travis build environment and cppcheck (fix #391 and fix #371)
2016-03-03 21:08:52 +01:00