HMIProject / open62541

11 stars 6 forks source link

Unify return values from `add_node()` methods #153

Closed sgoll closed 2 months ago

sgoll commented 2 months ago

Description

This PR unifies the return values from the different methods for adding server nodes. They now always return the node ID of the inserted node.

This also uses the more idiomatic Option for telling the server to pick a random, unused node ID when no specific node ID is requested.