11 std::vector<StatusCode> codes =
Server->Attributes()->Write(updates);
19 auto vec =
Server->Attributes()->Read(params);
25 std::vector<ReadValueId> request;
27 for (
auto & n : nodes)
40 std::vector<OpcUa::NodeId> ids;
42 for (
auto & node : nodes)
44 ids.push_back(node.GetId());
47 auto result =
Server->Views()->RegisterNodes(ids);
48 auto rit = result.begin();
49 std::vector<Node> out;
51 for (
auto nit = nodes.begin(); nit != nodes.end() && rit != result.end(); ++nit, ++rit)
53 out.push_back(
Node(nit->GetServices(), *rit));
61 std::vector<OpcUa::NodeId> ids;
63 for (
auto & node : nodes)
65 ids.push_back(node.GetId());
68 Server->Views()->UnregisterNodes(ids);
std::vector< OpcUa::ReadValueId > AttributesToRead
void CheckStatusCode(StatusCode code)
OpcUa Error codes. GNU LGPL.
Services::SharedPtr Server
void WriteAttributes(std::vector< WriteValue > &)
std::vector< Node > RegisterNodes(std::vector< Node > &)
ServerOperations(Services::SharedPtr Server)
OPC UA Address space part. GNU LGPL.
void UnregisterNodes(std::vector< Node > &)
OpcUa::AttributeId AttributeId
std::vector< DataValue > ReadAttributes(std::vector< ReadValueId > &attributes)