13 #include <opc/ua/client/remote_server.h> 14 #include <opc/ua/object_ids.h> 18 using namespace OpcUa;
43 Server->CreateSession(session);
46 Service =
Server->Attributes();
51 Service = std::unique_ptr<AttributeServices>();
62 std::shared_ptr<AttributeServices>
Service;
69 using namespace OpcUa;
81 const std::vector<DataValue> values = Service->Read(params);
88 using namespace OpcUa;
96 const std::vector<StatusCode> codes = Service->Write(std::vector<WriteValue>(1, value));
std::vector< OpcUa::ReadValueId > AttributesToRead
ApplicationDescription ClientDescription
#define EXPECT_TRUE(condition)
std::shared_ptr< AttributeServices > Service
std::unique_ptr< Services > Server
#define EXPECT_NE(expected, actual)
OPC UA Address space part. GNU LGPL.
#define ASSERT_TRUE(condition)
#define ASSERT_EQ(val1, val2)
EndpointDescription GetEndpoint(OpcUa::Binary::IOStream &stream)
std::unique_ptr< RemoteConnection > Connect(const std::string &host, unsigned port, const Common::Logger::SharedPtr &logger)