Commit Graph

1452 Commits

Author SHA1 Message Date
Götz Görisch 687adb7c90 fix(refactor): DI/NodeIds file renamed upstream 2023-01-11 17:58:53 +01:00
Julius Pfrommer 99890a71a0 refactor(pubsub): Move ua_pubsub_manager.h into ua_pubsub.h 2023-01-07 08:59:41 +01:00
Julius Pfrommer c6c5852836 fix(examples): Only sleep internally in server_mainloop.c 2023-01-07 01:03:56 +01:00
Julius Pfrommer 6e618fdb78 refactor(client): Always first set the connectStatus, then close the SecureChannel 2023-01-06 17:05:37 +01:00
Jan Hermes d1806a360f refactor(pubsub): PubSub - EventLoop integration 2023-01-04 00:45:39 +01:00
andreasebner a24032f239 feat(pubsub) Extend PubSub API with on-demand pubslish functionality (#5423)
* feat(pubsub) extend api with on-demand publish functionality and last-publish timestamp

* feat(pubsub) add missing return code, extended example with on-demand-publish

* feat(pubsub) extend on-demand api with thread safety

* feat(pubsub) add dedicated publish on demand example
2022-12-19 14:26:13 +01:00
Julius Pfrommer 9db33027db refactor(pubsub): Use UA_KeyValueMap instead of raw UA_KeyValuePair 2022-12-18 01:39:31 +01:00
basyskom-jvoe 42bd8e1c98 feat(server): Implement reverse connect on the server side (#5363) 2022-12-09 10:14:47 +01:00
Noel Graf 953360d9aa feat(client): Enable clients to securely authenticate to a server using an X.509 certificate (#5422) 2022-12-08 15:09:21 +01:00
Bin Lan f7ef685253 Fix the build error in pubsub_interrupt_publish_tsn.c
For OPEN62541 upgraded, some variables and functions
are removed or changed. So change the file,
pubsub_interrupt_publish_tsn.c to meet the upgradation.
2022-11-26 08:29:45 +01:00
andreasebner 78b4d522c4 feat(pubsub) check the maxStringLength in the pubsub path (#5365) 2022-10-24 00:38:17 +02:00
keba-uso 779e6b7902 feat(plugin): Integration of nodesetLoader functionality within open62541 (#5371) 2022-10-18 21:46:54 +02:00
Noel Graf 737f0562fc feat(pubsub): Adding payload encryption in mqtt publish example 2022-10-17 13:31:50 +02:00
Jan Altenberg b8bcee935f fix(examples): Fix usage of publisherId in pubsub_interrupt_publish.c
Signed-off-by: Jan Altenberg <jan.altenberg@osadl.org>
2022-10-07 08:57:56 +02:00
Noel Graf 8563396d0d fix(pubsub): In the mqtt subscriber example, the messageReceiveTimout is set when pubsub monitoring is enabled, and the port has been changed. 2022-10-03 20:49:00 +02:00
Jan Murzyn b136af7a6d fix(build): Build examples with open62541 not being a root of the CMake project. (#5359) 2022-10-03 10:26:35 +02:00
robertns e1d7708052 feat(server): optionally save rejected certificate (#5260) 2022-09-22 10:58:56 +02:00
Muddasir shakil d94f2b5fb9 fix(example): Correctly set port in register and multicast examples (#5341)
Until 1.2 it was possible to set Port address dynamically but in version 1.3
it is not possible. Setting it to 0 will resolve to 4840, which will conflict
with port assinged by default to LDS server in the example. Also the comment is
misleading in the example. Therefore the comment is deleted and a fixed port
4841 is assinged to register and multicast server examples.

Signed-off-by: Muddasir Shakil <muddasir.shakil@linutronix.de>

Signed-off-by: Muddasir Shakil <muddasir.shakil@linutronix.de>
2022-09-19 15:43:20 +02:00
Tobias Zimmermann e20d57c678 fix(examples): parsing argument frequency in tutorial_pubsub_mqtt_publish
argpos needs to be incremented before reading the value of the interval.

Signed-off-by: Tobias Zimmermann <Tobias.Zimmermann@tq-group.com>
2022-09-06 13:15:32 +02:00
Julius Pfrommer b4d2b36b0c refactor(core): Require UA_ENABLE_PARSING and UA_ENABLE_TYPEDESCRIPTION for JSON decoding
This lets us reuse the Guid parsing.
2022-08-20 14:34:38 +02:00
along 339cc37b73 fix(examples): usage() mistake (#5299)
In the usage() , the PCP should be 3 to meet the semantic.
```
 -pubUri     [name]   Publisher Mac address (default opc.eth://01-00-5E-00-00-01:8.7 - where 8 is the VLAN ID and 3 is the PCP)
 -subUri     [name]   Subscriber Mac address (default opc.eth://01-00-5E-7F-00-01:8.7 - where 8 is the VLAN ID and 3 is the PCP)
```
2022-08-18 09:42:14 +02:00
Noel Graf f39c262234 feat(pubsub): Integrate MQTT Subscriber functionality and add an MQTT Subscriber example. (#5234) 2022-08-15 15:20:35 +02:00
Thomas Fischer cfeeeedf42 feat(pubsub): add StandaloneSubscribedDataSet implementation
Co-authored-by: Andreas Ebner <andreas.ebner@iosb.fraunhofer.de>
2022-07-12 22:48:14 +02:00
Andreas Eckerstorfer fd76d7faae feat(pubsub): Support all publisherId types
Previously only UINT16 publisherId was fully supported.
Now all PublisherId types are supported except for
string PublisherIds in combination with fast-path.
2022-07-07 14:18:52 +02:00
Andreas Eckerstorfer 13af9b8688 refactor(core): Remove trailing spaces in code (#5221) 2022-06-24 11:03:25 +02:00
Jan Murzyn c6a198c972 feat(pubsub): Pass the server pointer to the PubSub StateChangeCallback 2022-06-21 12:03:25 +02:00
Julius Pfrommer 8fa9a18d87 fix(examples): Use UA_sleep_ms instead of sleep
sleep is not available on win32.
2022-06-19 20:22:40 +02:00
Noel Graf 3ea73d0438 fix(pubsub): Switching the MQTT library to upstream.
(cherry picked from commit acaa87d1c7)
2022-06-14 11:36:55 +02:00
Kjeld Flarup 2d59c7d367 feat(examples): Example client_encryption: If one of the specified certificate files is in wrong format, the example ignored this and continued with policy #None (#3405)
Signed-off-by: Kjeld Flarup <kfa@deif.com>
2022-06-10 01:04:47 +02:00
Noel Graf 02f101df73 feat(server) allow UA_NODESET_DIR to be custom defined. (#5138)
This makes it easier for developers to keep all ua-nodesets XML
definitions in a common location.

Signed-off-by: Björn Esser <b.esser@pengutronix.de>

Co-authored-by: Björn Esser <b.esser@pengutronix.de>
2022-06-07 11:04:03 +02:00
Julius Pfrommer b4a1cea573 refactor(pubsub): Improved thread-safety for PubSub 2022-06-05 22:42:41 +02:00
Noel Graf acaa87d1c7 fix(pubsub): Switching the MQTT library to upstream. 2022-05-30 09:09:02 +02:00
Julius Pfrommer 5fc0405ea6 Merge pull request #5046 from open62541/1.3
Merge 1.3 to master
2022-04-01 10:21:29 +02:00
Andreas Ebner 121c870c72 feat(server) add DSM sequence number support for RT-Subscriber 2022-03-30 11:35:27 +02:00
Andreas Ebner f97282698b feat(server) support for sequence numbers in pubsub rt path 2022-03-30 11:35:27 +02:00
Julius Pfrommer be9fbf4f61 Merge pull request #4959 from open62541/1.3
Merge 1.3 to master
2022-03-06 22:04:00 +01:00
Andreas Ebner 29413130c2 feat(server) extend select clause error handling, simplified client-event-filter-example 2022-02-24 06:23:56 +01:00
Andreas Ebner 182e4089fe feat(server) adjust monitor item event filter result status code, setup event severity in ctt example 2022-02-16 12:01:50 +01:00
Andreas Ebner ea5ae0bf3a feat(ex) add event-type to selected fields 2022-02-16 12:01:50 +01:00
Andreas Ebner 5905d7c56d server(deps) adjusted PLCopen nodeset location 2022-02-15 23:06:44 +01:00
Julius Pfrommer 1515cc790e refactor(examples): Tighten the limits in server_ctt.c 2022-02-14 06:04:36 +01:00
Andreas Ebner 26f17c92fa fix(ex) fix memory cleanup in client event-filter example, extend event-generation-server example 2022-02-11 15:32:54 +01:00
Andreas Ebner 9ead7dcd5c fix(ex) extended client event-filter example with literal and event field compare 2022-02-11 15:32:54 +01:00
Andreas Ebner f20a98633b fix(ex) completed event filter setup procedure
(cherry picked from commit 1282d82986)
2022-02-06 14:32:20 +01:00
andreasebner 9a28d32781 feat(server) extended event filter logic, support oftype, and, or (#4677)
(cherry picked from commit 4fac4b1359)
2022-02-06 14:32:20 +01:00
andreasebner 8ecf05f4ac feat(server) added event filter examples, introduce initial event filter where and select clause evaluation (#4626)
(cherry picked from commit 2f775b02a0)
2022-02-06 14:32:20 +01:00
andreasebner e000a85b55 feat(server) added event filter examples, introduce initial event filter where and select clause evaluation (#4608)
(cherry picked from commit ebb6f35659)
2022-02-06 14:32:20 +01:00
Julius Pfrommer 16247cfaef Merge remote-tracking branch 'origin/1.3' 2022-02-01 21:28:23 +01:00
Julius Pfrommer a73c53cd8a fix(doc): Fix Sphinx doc build warnings 2022-02-01 20:44:02 +01:00
Julius Pfrommer 8920a449f3 feat(examples): Use a token lifetime of 300s in server_ctt
So we have more tokens revolving during the tests.
Better coverage to test that functionality.
2022-02-01 20:44:02 +01:00