int main() {
opcua::Node parentNode(server, opcua::ObjectId::ObjectsFolder);
}
High-level node class to access node attribute, browse and populate address space.
Node & writeValueScalar(const T &value)
Write scalar to variable node.
Node addVariable(const NodeId &id, std::string_view browseName, const VariableAttributes &attributes={}, const NodeId &variableType=VariableTypeId::BaseDataVariableType, const NodeId &referenceType=ReferenceTypeId::HasComponent)
Add variable.
void run()
Run the server's main loop. This method will block until Server::stop is called.