Commit Graph

18 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
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
Julius Pfrommer 89f728aee1 Logging: Make logging a proper plugin with state and cleanup method 2018-12-04 18:39:12 +01:00
Stefan Profanter a0d6e2b166 Further adaption to architecture folder
# Conflicts:
#	plugins/ua_log_socket_error.h
2018-04-16 13:13:00 +02:00
StalderT 7e30f66b0b fix if/while/for/switch typo 2018-01-22 22:00:55 +01:00
StalderT bc9e669ff2 client subscriptions improvement (#1467)
* client subscriptions improvement

* remove lastSendState

* fix typo
2018-01-06 10:41:41 +01:00
StalderT d6ec41d53a add UA_Client_close and the ability to reactivate a session (#1444)
* add UA_Client_close and the ability to reactivate a session

* add some check

* remove double socket close introduce in #1417

* remove double close
2017-12-19 09:56:16 +01:00
Julius Pfrommer e74b4bf832 simplify datetime handling. 2017-12-12 22:09:55 +01:00
StalderT 53de7fd986 fix mem leak in client_connect_loop 2017-12-12 10:21:59 +01:00
Jose Cabral 6c82b082c8 Fix missing code for VxWorks 2017-12-01 16:13:19 +01:00
Julius Pfrommer 67dbb4cf18 move POSIX definitions out of the public header 2017-10-19 19:33:58 +02:00
Stefan Profanter bd97f9a482 Set client to error state if disconnected. Add example for reconnect (#1172)
When the server side is closed while the client is connected,
the client should be set to error state, which causes a reconnect on the
next connect call.

Additionally the `UA_sleep_ms` macro is added.

Add unit test for client reconnect
2017-08-22 09:40:02 +02:00