31 #include <condition_variable> 77 UaClient(std::shared_ptr<spdlog::logger> logger) : KeepAlive(logger),
Logger(logger) {}
108 std::vector<EndpointDescription> GetServerEndpoints(
const std::string & endpoint);
114 std::vector<EndpointDescription> GetServerEndpoints();
130 std::vector<std::string> GetServerNamespaces();
143 Node GetRootNode()
const;
144 Node GetObjectsNode()
const;
145 Node GetServerNode()
const;
147 void DeleteNodes(std::vector<OpcUa::Node> & nodes,
bool recursive =
false);
158 void OpenSecureChannel();
159 void CloseSecureChannel();
161 std::vector<OpcUa::Node> AddChilds(std::vector<OpcUa::Node> nodes);
175 uint32_t DefaultTimeout = 3600000;
std::condition_variable Condition
void SetApplicationURI(std::string uri)
Services::SharedPtr Server
KeepAliveThread KeepAlive
std::atomic< bool > Running
void SetProductURI(std::string uri)
std::string GetSecurityPolicy() const
std::string GetProductURI() const
KeepAliveThread(const Common::Logger::SharedPtr &logger=nullptr)
Internal.
std::string GetApplicationURI() const
set application description
void SetLogger(const Common::Logger::SharedPtr &logger)
void SetSessionName(const std::string &str)
set session name
UaClient(std::shared_ptr< spdlog::logger > logger)
void SetSecurityPolicy(std::string sec)
set security policy
Common::Logger::SharedPtr Logger
OPC UA Address space part. GNU LGPL.
std::string GetSessionName() const
EndpointDescription Endpoint
A Node object represent an OPC-UA node. It is high level object intended for developper who want to e...
Services::SharedPtr Server
void Start(Services::SharedPtr server, Node node, Duration period)
std::atomic< bool > StopRequest
Common::Logger::SharedPtr Logger
std::unique_ptr< RemoteConnection > Connect(const std::string &host, unsigned port, const Common::Logger::SharedPtr &logger)
std::string GetEndpoint() const