open62541 / open62541

Open source implementation of OPC UA (OPC Unified Architecture) aka IEC 62541 licensed under Mozilla Public License v2.0
http://open62541.org
Mozilla Public License 2.0
2.59k stars 1.24k forks source link

server_inheritance example broken? #4835

Open kjeldflarup opened 2 years ago

kjeldflarup commented 2 years ago

Description

Background Information / Reproduction Steps

I was trying out some of the examples and wonderes what server_inheritance did, all I got in UA expert was view. I Wonder if it is right that Bello is an empty object.
I had expected age and name

image

Used CMake options:

cmake -DOPEN62541_VERSION=v1.1.3 -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=gcc -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=MINIMAL -DUA_ENABLE_SUBSCRIPTIONS=true -DUA_MULTITHREADING=150 -DUA_ENABLE_ENCRYPTION=true -DUA_ENABLE_ENCRYPTION_OPENSSL=true -DUA_BUILD_EXAMPLES=true -DUA_ENABLE_PUBSUB_INFORMATIONMODEL=false -DUA_ENABLE_PUBSUB_DELTAFRAMES=false -DUA_ENABLE_PUBSUB=false -DUA_LOGLEVEL=100 -DBUILD_SHARED_LIBS=ON -DJSON_BuildTests=OFF -DCMAKE_INSTALL_PREFIX=/userdata/codesys/codesys-runtimes/components/CmpOpen62541/Linux/host /userdata/codesys/codesys-runtimes/components/CmpOpen62541/Linux/open62541

Checklist

Please provide the following information:

jpfr commented 2 years ago

The same example also contains a type with mandatory children. Only mandatory children are auto-instantiated.