summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Meerkötter <frank.meerkoetter@basyskom.com>2020-02-03 15:12:45 +0100
committerJannis Völker <jannis.voelker@basyskom.com>2020-10-07 13:21:40 +0000
commit707d1c4a45e3a2262693a2f456fd4d10f4f676b0 (patch)
treeb076727f497a0b82ef419445bb302da56a8b9fb9
parent623783ba583589e089f0c212ab04b50520fe94a8 (diff)
open62541: unbreak config test
This config test was never ported over to the v1.0 API of open62541 and was therefore always failing... Change-Id: I7b93a1a81d416b53dce359f05668150a6f6287cc Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com> (cherry picked from commit 42d8092bf07028aaa2d474e0f92831713cf48d40) Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r--config.tests/open62541/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.tests/open62541/main.cpp b/config.tests/open62541/main.cpp
index 478f54e..f6ce7a4 100644
--- a/config.tests/open62541/main.cpp
+++ b/config.tests/open62541/main.cpp
@@ -40,7 +40,8 @@
int main(int argc, char *argv[])
{
/* Create a client and connect */
- UA_Client *client = UA_Client_new(UA_ClientConfig_default);
+ UA_Client *client = UA_Client_new();
+ UA_ClientConfig_setDefault(UA_Client_getConfig(client));
UA_StatusCode status = UA_Client_connect(client, "opc.tcp://localhost:4840");
if (status != UA_STATUSCODE_GOOD) {
UA_Client_delete(client);