Access to Node base attributes

197 views
Skip to first unread message

juanguille...@gmail.com

unread,
Feb 1, 2018, 5:06:46 PM2/1/18
to open62541
Hi I need to access to a node browse name and references but i found this in the library:

* The structures defined in this section are *not user-facing*. The interaction
 * with the information model is possible only via the OPC UA :ref:`services`.
 * Still, we reproduce how nodes are represented internally so that users may
 * have a clear mental model.
 *
 * Base Node Attributes
 * --------------------
 *
 * Nodes contain attributes according to their node type. The base node
 * attributes are common to all node types. In the OPC UA :ref:`services`,
 * attributes are referred to via the :ref:`nodeid` of the containing node and
 * an integer :ref:`attribute-id`.
 *
 * Internally, open62541 uses ``UA_Node`` in places where the exact node type is
 * not known or not important. The ``nodeClass`` attribute is used to ensure the
 * correctness of casting from ``UA_Node`` to a specific node type. */
#define UA_NODE_BASEATTRIBUTES                  \
    UA_NodeId nodeId;                           \
    UA_NodeClass nodeClass;                     \
    UA_QualifiedName browseName;                \
    UA_LocalizedText displayName;               \
    UA_LocalizedText description;               \
    UA_UInt32 writeMask;                        \
    UA_UInt32 userWriteMask;                    \
    size_t referencesSize;                      \
    UA_ReferenceNode *references;

typedef struct {
    UA_NODE_BASEATTRIBUTES
} UA_Node;

How can I expose these attributes to use them in a server program?

Julius Pfrommer

unread,
Feb 2, 2018, 2:52:31 AM2/2/18
to open62541
You can access the node attribute vie the OPC UA Services.
The same way a client would. But without the network overhead.


Regards,
Julius
Reply all
Reply to author
Forward
0 new messages