Commit Graph
9 Commits
Author SHA1 Message Date
Noel Graf 84ebf2509a feat(server): Add the missing TrustListMasks type definition. Initial reload certificates. Small fixes 2024-05-10 21:39:17 +02:00
Noel Graf 579d51f75b feat(server): Define the CertificateGroup interface and enable gds push management capabilities in the server information model. 2024-02-23 11:37:52 +01:00
Julius Pfrommer 92e437d785 feat(server): Add resendData method to server object 2023-10-15 08:51:46 +02:00
Julius Pfrommer 10c612f695 feat(server): Add the missing ModellingRules to the reduced NodeSet 2022-01-19 07:01:02 +01:00
Julius Pfrommer c6f1abd8cd feat(server): Add UA_ENABLE_DIAGNOSTICS flag and basic support 2022-01-06 07:58:30 +01:00
Noel Graf 57d7c6bcf9 refactor(nc): Reworked the function for parsing XML values. Support for optional fields, nested structures, and unions. (#4483) 2021-09-27 00:16:17 +02:00
Julius Pfrommer 0fb95e4ff5 feat(server): Add HasInterface during NS0 bootstrap 2020-06-22 15:50:54 +02:00
3410e045e3 feat(core) Support for structures with optional fields and unions (#3503)
* initial implementation approch for the handling of structures with optional fields and unions

implemented printing structs with optional fields. Tested with optstructs.bsd file.

implemented calculating binary size of structures with optional fields and encoding them. Also implemented printing the right padding for the first member of types with optional fields. Tested with optStructs_test.c

implemented decoding structures with optional fields. Tested with optStructs_test.c

Implemented calculating the binary size of unions. Tested in optStructs_test.c

Implemented encoding and decoding unions. Added returning 4 as binary size, if the SwitchField is too large to avoid later segmentation faults while en-/decoding. Tested with optStructs_test.c

Tested encoding and decoding structs with optional fields and unions with the RtlsLocationResult type from the AutoID nodeset. Works with other clients like UAExpert too now.

Implemented copying and clearing structures with optional fields and unions.

* extended unit testing and examples for unions and optstructs, fixes and cleanups on optstruct and union implementation

* extended custom type example with OPTSTRUCT and UNION

* updated ua-nodeset deps to Tag Errata-1.04.5

* extended nodeset-compiler test with the AutoID companion specification

* reimplemented union representation to match the OPC UA Standard sugestion Part 5 5.2.8 (1.04)

added nodeset compiler support for the new internal union structure

* reimplemented optional struct with internal pointer based representation

added support for the new internal optstruct representation to the nodeset compiler, removed unnecessary type export of union enum field

extended clearStructure function to handle structures with optional fields

* added support for the use of arrays as an optional field

* fixed encoding mask issue, extended read service type-description with the isOptional field and the union type, extended custom types client and server example with arrays, OptStruct and union, removed implementation comments

* added the union datatype to the reduced information model (enables the usage of unions in combination with the reduced information model)

* added UA_ prefix to enum, moved mask copy operation before bail out the funtion

* reduced checks in critical path, added some comments

* fixed horizontal comment alignment

created defined for the binary encoding id for each type

* unify redundant padding logic

Co-authored-by: Grigory Fridman <grigoryfridman@gmail.com>
Co-authored-by: Julius Pfrommer <julius.pfrommer@web.de>
2020-05-02 10:20:10 +02: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