| 194 | } |
| 195 | |
| 196 | UA_StatusCode Client::connect(const std::string& url, const std::string& username, const std::string& password) { |
| 197 | if (username.empty()) { |
| 198 | return UA_Client_connect(client_, url.c_str()); |
| 199 | } else { |
| 200 | return UA_Client_connect_username(client_, url.c_str(), username.c_str(), password.c_str()); |
| 201 | } |
| 202 | } |
| 203 | |
| 204 | NodeData Client::getNodeData(const UA_ReferenceDescription *ref, const std::string& basePath) { |
| 205 | if(ref->nodeClass == UA_NODECLASS_VARIABLE) { |