Commit Graph

19 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
9e193c3a89 refactor(client): Improve the highlevel async read API
Return a StatusCode in the callback.
Reduce the use of static inline functions in the API.
2021-03-26 21:48:21 +01:00
Julius Pfrommer
d02dbfd9d6 fix(examples): Remove warnings in newer cppcheck versions 2021-01-04 11:20:23 +01:00
Julius Pfrommer
51071ff59a fix(client): Deprecate UA_Cient_translateBrowsePathsToNodeIds_async
The API of this function is broken and has to be redone.
2020-06-19 16:35:02 +02:00
Julius Pfrommer
97ce87470c feat(client): Track Session state separately 2020-05-05 09:33:57 +02:00
Julius Pfrommer
cbde3c8803 refactor(client): Simplify the client connection API 2020-05-05 09:33:57 +02:00
Julius Pfrommer
a40a909797 refactor(examples): Cosmetic improvements 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
Jose Cabral
fba3aa57a0 Get rid of some arch-dependant in examples and tests 2018-06-29 08:38:08 +02:00
Julius Pfrommer
7d162cb53b Make feature definitions conditional on build flags 2018-06-27 20:52:24 +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