Commit Graph

939 Commits

Author SHA1 Message Date
Stefan Profanter f1f35981ea fix(nodeset-compiler): Use ParentNodeId attribute for parent node where possible 2020-04-10 18:05:52 +02:00
Stefan Profanter 0a6ccdbe44 feat(server): Integrate node id header generation into nodeset compiler 2020-04-10 15:30:03 +02:00
Waheed Ejaz 2f57fd7590 feat(pubsub): add support for transportSettings of dataSetReader 2020-04-09 08:08:12 +02:00
Julius Pfrommer cde04b932b feat(tools): Usable pretty-printing for gdb 2020-04-05 08:58:16 +02:00
Christian von Arnim 17f0e045fc Fix: NodesetGenerator QualifiedName: 'NoneType' object has no attribute 'name' 2020-03-29 11:50:11 +02:00
Bin Lan 19b3dc0945 add build/test for security policy source code using openssl in Linux. 2020-03-18 10:36:45 +01:00
Stefan Profanter 2640b6923e fix(ci): Pin DrMemory to v2.2 to avoid build failures 2020-03-12 13:33:19 +01:00
Bin Lan f71912485e add security policy Basic256Sha256 and PKI support with OpenSSL provider. 2020-03-12 07:43:27 +01:00
Julius Pfrommer fec7850869 fix(ci): Use the regular valgrind from homebrew on MacOS X
The git repository for the HEAD version is unstable.
2020-03-11 16:25:42 +01:00
Julius Pfrommer da7eebebe2 build(core): Rename UA_COMPILE_AS_CXX to UA_FORCE_CPP
For consistent naming of flags that force compiler settings.
2020-02-17 22:26:03 +01:00
Jayanth Velusamy 74eab7d4bd fix(nc): Add Once-Only Headers in generate_typedefinition
Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2020-02-07 15:06:47 +01:00
Jayanth Velusamy a963a81e76 refactor(sec): option to provide certificate name
- Add "-c" option for certificate naming

Signed-off-by: Jayanth Velusamy <jayanth.v@kalycito.com>
2020-02-07 14:36:17 +01:00
Waheed Ejaz d02e5f2ac9 fix(ex): use correct datatype for writergroup json message settings 2020-02-06 07:50:30 +01:00
Julius Pfrommer 15ac0432ea fix(tools): Fix ua2json after PubSub API change 2020-01-25 19:33:26 +01:00
Stefan Profanter 5dce2701a3 refactor(nodeset-compiler): Remove star imports and clean up 2020-01-21 10:08:11 +01:00
Stefan Profanter ac16287c86 feat(nodeset-compiler): Add support for Structure inside Extension Object 2020-01-21 10:08:11 +01:00
Stefan Profanter af6d2ee2d1 fix(nodeset-compiler): Fix handling symbolicName in extension object 2020-01-18 22:13:51 +01:00
Julius Pfrommer 66f0897151 refactor(core): Remove unused transport datatypes 2020-01-18 21:15:08 +01:00
Julius Pfrommer 1c03dd500a fix(build): The check library has removed the compat target on win32 2020-01-06 09:27:53 +01:00
Sameer AL-Qadasi ff87c2876d (feat): First Implementation of Alarms and Conditions (#2083)
* Update src/server/ua_subscription_events.c

* Alarms and Conditions First Implementation

implemented facets:
1- A&C Base Condition Server Facet (only mandatory)
2- A&C Enable Server Facet (only mandatory)
3- A&C Alarm Server Facet (only mandatory)
4- A&C Acknowledgeable Alarm Server Facet (complete, with ConfirmedState and Confirm Method)

Notes:
1) Change in ua_subscriptions_monitoreditem.c is related to issue #2114. Without that fix, the server crashes when generating OverflowEvents.

2) The Events: RefreshStart and RefreshEnd are abstract according to the specification. So to make it possible to create instances of them the fix in function "create_event()" is added (change abstract attribute of the EventType to false).

@basysKom-jvoe, I will be glad if you help reviewing the code:)

* some fixes

Update src/server/ua_subscription_alarms_conditions.c

* correcting example name

adding function prototype

* some fixes

1) keep events and A&C disabled and NS0 reduced in main CMakeLists
2) enable A&C in test scripts (Travis and Veyor)

* Update ua_subscription_alarms_conditions.c

fix som error handling

* Update ua_subscription_alarms_conditions.c

* fixing issues from first review

1) calculate size of array
2) correct misspelling
3) correct some comments

* Update ua_subscription_alarms_conditions.c

to retrigger travis test.
14 - subscription_events test fails randomly!

* fix memory leak issues

the function UA_NodeId_copy was used multiple times, however,  the memory allocated is not freed because only numeric NodeIds were used in testing. So using nun numeric NodeIds will cause memory leak.
Next commit/version should fix that issue.

* review fixes: comments 1 and 2

1) use new server logger function (PR rebase).
2) use values instead of pointers in A&C API functions for consistency

* Review: reduce indent

reducing indent by using "continue" inside if statements in loops

* Update tutorial_server_alarms_conditions.c

modify includes

* update to upstream master and fix some A&C Module issues

* fix CI test and some review issues

* fix some review issues

the previous commits fix issues mentioned in comments:
- https://github.com/open62541/open62541/pull/2083#discussion_r241070233
- https://github.com/open62541/open62541/pull/2083#discussion_r241072127
- https://github.com/open62541/open62541/pull/2083#discussion_r241076137
- https://github.com/open62541/open62541/pull/2083#discussion_r241076137
- https://github.com/open62541/open62541/pull/2083#discussion_r241079915
- https://github.com/open62541/open62541/pull/2083#discussion_r241082415
- https://github.com/open62541/open62541/pull/2083#discussion_r241083539
- https://github.com/open62541/open62541/pull/2083#discussion_r284586642
- https://github.com/open62541/open62541/pull/2083#discussion_r284587406
- https://github.com/open62541/open62541/pull/2083#discussion_r284589129

not resolved yet, need further discussion:
- https://github.com/open62541/open62541/pull/2083#discussion_r241072659
- https://github.com/open62541/open62541/pull/2083#discussion_r241075205

* some modification after rebase

* remove unused code + some fixes

* some fixes and modifications

changes:
- fix conflicting variable names
- pass FieldNames directly without help variable in
  "UA_Server_setConditionField"
- remove unused code
- add some comments
- correct indentation

* fix issues mentioned in review

* enable setting ConditionId when creating Condition Instances

* fix issues based on review

- pass variant instead of void* and type when setting Condition Fields and their Properties.

- Change RefreshEvents IsAbstract attribute to "False" when creating the Condition instead of doing that when generating the event.

- comment issue #2114 fix out (it seems to work fine after recent commits).

- modify A&C example according to changes.

* use A&C public API to set condition fields and properties

* check for Null pointer before comparing NodeIds

Co-Authored-By: andr <aandranikk@gmail.com>

* correct Typo

Co-Authored-By: andr <aandranikk@gmail.com>

* rebase + fix issues from review

some issues need further discussion before fixing them. Please see:
https://github.com/open62541/open62541/pull/2083#discussion_r326857289
https://github.com/open62541/open62541/pull/2083#discussion_r326857373

* fixup after rebase
2019-12-17 20:28:40 +01:00
Stefan Profanter d2dc74f686 fix: Remove debug output 2019-12-17 13:46:18 +01:00
Julius Pfrommer 91f6a20c63 Merge branch '1.0' 2019-12-16 21:09:21 +01:00
Stefan Profanter 33c93905da fix(cmake): Add IMPORT_BSD option from generate_datatypes to upper generate_ns_and_datatypes 2019-12-09 12:28:20 +01:00
Stefan Profanter 3ede77ab0e fix(datatype-generator): Clarify error message and fix error if python 3 is used 2019-12-09 12:28:20 +01:00
Stefan Profanter 51c7d088db fix(cmake): Add IMPORT_BSD option from generate_datatypes to upper generate_ns_and_datatypes 2019-12-09 11:19:02 +01:00
Stefan Profanter 6f71c4c0b4 fix(datatype-generator): Clarify error message and fix error if python 3 is used 2019-12-09 11:19:02 +01:00
Stefan Profanter f68e134460 feat(ns): Add possibility to blacklist nodes from nodeset generator
Blacklisting nodes is now possible through a special blacklist file.
If a node is blacklisted, the node itself and all references to that node are deleted.

Example blacklist file content for blacklisting specific node ids

(lines starting with `#` are comments/deactivated)

```text
i=79
i=83
i=94
#i=95
#i=96
i=97
i=98
i=99

ns=http://opcfoundation.org/UA/DI/;i=6555
ns=http://opcfoundation.org/UA/DI/;i=6564
#ns=http://opcfoundation.org/UA/DI/;i=15031
#ns=http://opcfoundation.org/UA/DI/;i=15032
```
2019-11-22 13:10:16 +01:00
Stefan Profanter 86b6dd0f14 fix(datatype-gen): Do not print code if empty types array
This fixes a compile warning if the types array is empty
2019-11-22 13:10:16 +01:00
Wolfgang Braun a71e91803a Add EnumDefinition and EnumField to reduced dataset 2019-11-22 10:04:34 +01:00
Julius Pfrommer 5065bb1159 fix(tools): Make the ApplicationUri in the certificate configurable 2019-11-13 23:19:28 +01:00
Julius Pfrommer 89145733bf refactor(tools): Use argparse for the certificate creation script 2019-11-13 23:19:28 +01:00
Stefan Profanter addf2adfae fix(ns): Rename Minimal.xml to Reduced.xml to match CMake options
See also #3232
2019-11-08 20:08:09 +01:00
Stefan Profanter c5d7624115 fix(docker): Move Docker files into separate directory and fix Docker Cloud build 2019-11-06 11:28:06 +01:00
fem 9a795903c6 fix(nc): Correcting code generation for OptionSet datatypes (bitmasks)
Previously all enumerations had 32 bits size, regardless of
'IsOptionSet' or 'LengthInBits' attribute of .bsd file.
This led to incorrect type sizes for OptionSets with 'LengthInBits' != 32.
Now we use an unsigned integer type for OptionSets which is large enough
to represent the indicated 'LenghtInBits' attribute.

Fixes #3149
2019-11-06 10:04:07 +01:00
Stefan Profanter 1748f820ab fix(arch): FreeRTOS use task.h include without prefix 2019-11-05 12:37:52 +01:00
Nik625 9bcc632cde feature(server): Add reduced NodeSet for DataAccess support 2019-11-04 11:14:51 +01:00
Julius Pfrommer 7cfa597246 feature(server): More DataTypes generated for DA support 2019-11-04 11:14:51 +01:00
Stefan Profanter ffb0afb041 fix(ci): Pin msys2 to specific version otherwise install fails.
Fixes #3233
2019-11-02 11:26:34 +01:00
Stefan Profanter c267bc69e9 fix(ci): Pin msys2 to specific version otherwise install fails.
Fixes #3233
2019-11-02 11:25:53 +01:00
Julius Pfrommer c04429b824 fix(build): Fix use of check_c_compiler_flag and avoid add_definitions 2019-10-30 14:07:57 +01:00
Stefan Profanter 8bcea80e8b ci(debian): Split debian build into separate build and move to azure pipeline 2019-10-26 09:22:26 +02:00
Stefan Profanter 760ce81453 ci: Better structure azure pipelines into multiple files 2019-10-25 19:19:24 +02:00
jrcoding 39be483320 feat(debian): add PDF and HTML docs including examples 2019-10-25 16:04:03 +02:00
jrcoding 077118e6ff separate tools from dev, bump standards to current version and extend description 2019-10-25 08:47:19 +02:00
Stefan Profanter d04ad18729 fix: Remove datatype_generator debug output 2019-10-24 23:30:53 +02:00
Stefan Profanter c7ee50f797 ci: Add freeRTOS CI build 2019-10-24 20:28:14 +02:00
Stefan Profanter e123727a12 ci: Better structure azure pipelines into multiple files 2019-10-24 20:28:14 +02:00
Ari 916653022b Refactor generate_datatypes (#3138)
* Move generate_datatypes

* Move generate_datatypes

* Refactor datatypes

* Fix Codacy errors in backend

* Fix Codacy errors in parser
2019-10-22 15:22:14 +02:00
Stefan Profanter 22fadf7edf Merge 1.0 into master 2019-10-14 11:24:11 +02:00
Stefan Profanter a2d07b3e54 ci: unmute submodule clone on appveyor 2019-10-11 22:50:54 +02:00