Selva Suba Jenifer Joseph
fbb4e0fe4d
test(PubSub): Add unit test case for XDP connection
...
- Unit test case to verify XDP connection
- Add README_pubsub_TSN.txt for executing the applications and unit tests
Change-Id: I7a05d2dcd8f7881f24a3c5a44560aad1b3971e41
2020-04-07 17:04:18 +02:00
Shriya Chaurasia
c09da0b76d
test(PubSub): Add unit test for ethernet ETF functionality
...
- Add unit test case for ethernet etf connection
- Add unit test case for ethernet etf send functionality
Change-Id: I1bfba13b5c80e2b302bc46e1f616af77a1291bc1
2020-03-06 14:06:21 +01:00
Shriya Chaurasia
4c155d04de
test(PubSub): Add unit test for ethernet functionality
...
- Add unit test case for ethernet connection
- Add unit test case for ethernet send functionality
Change-Id: If2ec7876f1a3d8b671c43a1d578233443dbeee6f
2020-03-06 14:06:21 +01:00
Julius Pfrommer
7dd3687599
test(pubsub): Use a #define for the public test mqtt server
2020-02-17 22:26:03 +01:00
Andreas Ebner
6d9a36ecbc
feat(pubsub) changed PublishedDataSet storage structure from ptr + size to TAILQ within the PubSubManager struct
2019-11-22 15:00:59 +01:00
Andreas Ebner
fcefc5d0bc
feat(pubsub) changed PubSubConnection storage structure from ptr + size to TAILQ within the PubSubManager struct
2019-11-22 15:00:59 +01:00
Andreas Ebner
a1cd155875
feat(pubsub) extended PubSub RT level example, added testcase for PubSub RT levels, fixed memory leaks, moved offset calculation into DSM and NM binary size calculation (signature changed)
2019-11-22 15:00:59 +01:00
Andreas Ebner
3b170d0199
feat(pubsub) added generation of metdata for PDS and DataSetFields
2019-11-09 12:42:02 +01:00
Suriya Narayanan Parthasarathi Vimala
112492f6bb
fix(PubSub): Publishing order of multiple DataSetFields
...
- The order of DSF should be the same while creating and publishing and
the existing implementation publishes reversely
- Used TAILQ structure for DSF instead of LIST structure
Signed-off-by: Suriya Narayanan Parthasarathi Vimala <suriyanarayanan.pv@kalycito.com >
Change-Id: I4a32fd0cec5becb0457e4040d8b1d7c64aef9836
2019-11-06 09:50:29 +01:00
Lukas M
7ff1fe598f
feat(pubsub): Add MQTT support
...
- Rebase to Master branch
- Modify Server APIs un tutorial_pubsub_mqtt.c
- TODO:Resolve unit test error in check_pubsub_connection_mqtt.c
2019-10-10 07:08:13 +02:00
Julius Pfrommer
3ad52a1773
refactor(pubsub): Rename deleteMembers to clear
2019-10-03 15:14:24 +02:00
Julius Pfrommer
abae79b2f7
refactor(pubsub): Split pubsub core into reader and writer
2019-09-23 00:51:56 +02:00
Andreas Ebner
0f16425702
feat(pubsub): added pubsub configuration lock and pubsub state machine skeleton
2019-09-23 00:51:56 +02:00
Julius Pfrommer
200b75acac
Merge branch '1.0'
2019-09-04 18:06:05 +02:00
Julius Pfrommer
bade8ea04f
fix(pubsub): Fixing an integer overflow moved the timestamp by 1s
2019-09-04 08:22:58 +02:00
Stefan Profanter
01fae7b5b4
Merge remote-tracking branch '1.0' into master
2019-09-02 14:34:18 +02:00
Thangavaila Kalyani Thangaraja
112a88dc68
[TEST] PubSub: Unit test for ByteString variable
...
- Verify the creation of ByteString variable using
UA_Server_DataSetReader_addTargetVariables
Change-Id: Ia9acb07b5eca73708df9bc17b7f6bb5aa81e8790
Signed-off-by: Thangavaila Kalyani Thangaraja <thangavaila.k@kalycito.com >
2019-08-31 09:35:31 +02:00
Selva Suba Jenifer Joseph
3d68adbe76
PubSub: Unit test for identifier check
...
- Validate if DataSetMessage is sent to DataSetReader after
checking identifiers
- Verify Publisher and Subscriber value for data integrity
Change-Id: I354c877256f03df0c77b9abd2af93d56bb9dc8fd
2019-08-20 15:50:26 +02:00
Selva Suba Jenifer Joseph
9dfd9fc86f
PubSub: Unit test for adding Multiple ReaderGroups
...
- Verify multiple ReaderGroups and DataSetReaders
addition using unit test case
Change-Id: Icbdab133e0860e680d4f6b959f4e1769da5e3f12
2019-08-20 15:50:26 +02:00
Thangavaila Kalyani Thangaraja
870d1a071e
[TEST] PubSub: Unit test for Boolean variable
...
- Verify Published and Subscribed boolean data
Change-Id: I1e68cf0c27e201ce3ce67c6621b77e2b8b76cc35
2019-08-01 08:04:29 +02:00
Thangavaila Kalyani Thangaraja
226f924767
[TEST] PubSub: Unit test for Int64 variable
...
- Verify Published and Subscribed Int64 data
Change-Id: I4b8d31448d9e3770a7b97dac90108a0d655e4983
2019-08-01 08:04:29 +02:00
Thangavaila Kalyani Thangaraja
00bf9df487
[TEST] PubSub: Unit test for Int32 variable
...
- Verify Published and Subscribed Int32 data
- Modify the Publishing interval from 100 to 5 ms
for verifying the Subscriber as the Subscriber is
called at a 5 ms
Change-Id: I1ac5109a7845fa551b780b3c9627dcd977e0126e
2019-08-01 08:04:29 +02:00
Thangavaila Kalyani Thangaraja
e0847d8578
[TEST] PubSub: Unit test for Boolean variable
...
- Verify Published and Subscribed boolean data
Change-Id: I1e68cf0c27e201ce3ce67c6621b77e2b8b76cc35
2019-07-31 20:02:37 +02:00
Thangavaila Kalyani Thangaraja
24b5c466a0
[TEST] PubSub: Unit test for Int64 variable
...
- Verify Published and Subscribed Int64 data
Change-Id: I4b8d31448d9e3770a7b97dac90108a0d655e4983
2019-07-31 20:02:37 +02:00
Thangavaila Kalyani Thangaraja
4f2d5e0ed0
[TEST] PubSub: Unit test for Int32 variable
...
- Verify Published and Subscribed Int32 data
- Modify the Publishing interval from 100 to 5 ms
for verifying the Subscriber as the Subscriber is
called at a 5 ms
Change-Id: I1ac5109a7845fa551b780b3c9627dcd977e0126e
2019-07-31 20:02:37 +02:00
Andreas Ebner
27dfe87d3c
add PubSub Test for UADP Message generation and NM/DSM calculation bugfix
2019-07-16 21:25:49 +02:00
Shriya Chaurasia
db63a89e86
[TASK] Add unit test cases for subscriber implementation
...
Change-Id: I26563c546ed0d75271192ddfbcf6aaba6516b41e
2019-06-06 15:02:08 +02:00
Julius Pfrommer
fd08d012d9
Server: Initialize the config in the server
2019-04-23 00:41:32 +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
Stefan Profanter
f295562a11
Untabify
...
Used command:
`find . \( -name '*.c' -o -name '*.h' \) -not \( -path "./deps/*" -prune \) ! -type d -exec bash -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;`
2019-03-14 16:44:34 +01:00
Patrick Gansterer
932b9e1a09
JSON: support nanoseconds when encosing/decoding DateTime
...
The OPC UA specification 1.04 part 6 at paragraph 5.4.2.6 does not
define any restrictions of the fraction part of ISO 8601. To support
the whole precison of DateTime we need to support at least 100ns.
2019-03-03 21:36:48 +01:00
Andreas Ebner
af8c26f7d1
pubsub improvements
...
pubsub improvements
pubsub improvements
2019-02-20 11:30:20 +01:00
Julius Pfrommer
62f727d2b3
PubSub: Don't "invent" unique MessageIds in the encoding layer
2019-02-19 07:56:06 +01:00
Mark Giraud
5a6d1fa79c
Fix pubsub test
2019-02-02 23:31:47 +01:00
Lukas M
89b41278ab
JSON: added networkmessage and datasetmessage json encoding (PUBSUB)
2019-01-22 17:54:54 +01:00
Stefan Profanter
ac0363d356
Fix stack buffer overflow
...
```
27: READ of size 4 at 0x7ffe44da68c1 thread T0
27: #0 0x4eed2b in __asan_memcpy (/home/travis/build/open62541/open62541/build/bin/tests/check_pubsub_connection_udp+0x4eed2b)
27: #1 0x553464 in UA_Array_copy /home/travis/build/open62541/open62541/src/ua_types.c:1067:9
27: #2 0x55bf3b in Variant_copy /home/travis/build/open62541/open62541/src/ua_types.c:422:28
27: #3 0x55938a in copy_noInit /home/travis/build/open62541/open62541/src/ua_types.c:934:23
27: #4 0x552df5 in UA_copy /home/travis/build/open62541/open62541/src/ua_types.c:959:28
27: #5 0x14a5d61 in UA_Variant_copy /home/travis/build/open62541/open62541/build/src_generated/ua_types_generated_handling.h:758:12
27: #6 0x14a5c58 in UA_PubSubConnectionConfig_copy /home/travis/build/open62541/open62541/src/pubsub/ua_pubsub.c:50:23
27: #7 0x14b5adb in UA_Server_addPubSubConnection /home/travis/build/open62541/open62541/src/pubsub/ua_pubsub_manager.c:44:28
27: #8 0x52abc5 in AddSingleConnectionWithMaximalConfiguration /home/travis/build/open62541/open62541/tests/pubsub/check_pubsub_connection_udp.c:142:28
27: #9 0x1615721 in tcase_run_tfun_nofork.isra.11 (/home/travis/build/open62541/open62541/build/bin/tests/check_pubsub_connection_udp+0x1615721)
27: #10 0x161598d in srunner_run (/home/travis/build/open62541/open62541/build/bin/tests/check_pubsub_connection_udp+0x161598d)
27: #11 0x5275de in main /home/travis/build/open62541/open62541/tests/pubsub/check_pubsub_connection_udp.c:216:5
27: #12 0x2b442723ff44 in __libc_start_main /build/eglibc-ripdx6/eglibc-2.19/csu/libc-start.c:287
27: #13 0x41af9b in _start (/home/travis/build/open62541/open62541/build/bin/tests/check_pubsub_connection_udp+0x41af9b)
```
See also https://travis-ci.org/open62541/open62541/jobs/474897811#L5964
2019-01-03 23:53:57 +01:00
Julius Pfrommer
0184feec2b
Tests: Fix possible use of uninitialized variables
2018-12-04 18:39:12 +01:00
Andreas Ebner
7750c77fef
added WG handling and extended pubsub information model tests. Fixed some memory leaks.
2018-11-19 07:19:35 +01:00
Andreas Ebner
5d50ebfd16
extended pubsub information model methods tests with data set folder delete and create
2018-11-19 07:19:35 +01:00
Andreas Ebner
72853d143e
added PubSubConnection information model representation and methods
2018-11-19 07:19:35 +01:00
Andreas Ebner
7e85f6b56a
added pubsub information models methods test
2018-11-19 07:19:35 +01:00
Julius Pfrommer
0979376230
PubSub: Add publish speed test
2018-09-22 08:15:25 +02:00
Heiko Thiery
ca97e78170
fix issue with freeing transport layer memory ( #2066 )
...
* fix issue with freeing transportlayer memory
- Added helper function to reallocate memory.
- Added unit test
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com >
* rename function
UA_Server_addPubSubTransportLayer -> UA_ServerConfig_addPubSubTransportLayer
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com >
* add documenation
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com >
* move UA_ServerConfig_addPubSubTransportLayer
Move UA_ServerConfig_addPubSubTransportLayer to ua_config_default.c.
Signed-off-by: Heiko Thiery <heiko.thiery@kontron.com >
2018-09-20 17:26:42 +02:00
Andreas Ebner
6aeb2fddf6
Added first part of the pubsub information model representation
2018-05-27 18:56:04 +02:00
Andreas Ebner
014fe88c93
Extended PubSub cmake exported header, PubSub test extended
...
include error adjustments
2018-05-22 09:51:12 +02:00
Andreas Ebner
79cb8c68b8
Add pubsub publish callback mechanism
2018-04-23 06:47:10 +02:00
Andreas Ebner
4b2dfd0241
Add pubsub WriterGroup/Writer/DataSetField handling
2018-04-22 10:05:13 +02:00
Andreas Ebner
ac41f2f648
Add pubsub PublishedDataSet handling
...
documentation fixes, code project adjustments
removed hard dependency between main lib and log plugin
pubsub API delte PubSub prefix
2018-04-06 23:40:49 +02:00
Andreas Ebner
008e3fe43f
Add pubsub connection handling and udp plugin
...
Update CMakeLists.txt
adjusted check_types_memory for nodeset-1.04 types, small code analyzer fixes
analyzer fixes, added newlines
analyzer fixes, added newlines
update licence to CCZero
fix freeaddrinfo in error case, code and comment project adjustments
2018-03-30 13:11:06 +02:00