Browse Source

fixed opcua_demo compilation error

pull/123/head
wlyu 8 months ago
parent
commit
d1625c7d84
  1. 8
      APP_Framework/Applications/control_app/opcua_demo/opcua_demo.c
  2. 2
      APP_Framework/Framework/control/plc/interoperability/opcua/ua_client.c

8
APP_Framework/Applications/control_app/opcua_demo/opcua_demo.c

@ -72,17 +72,13 @@ static void test_ua_connect(void *arg)
UA_ClientConfig_setDefault(config);
ua_print("cfg ------>\n");
retval = UA_Client_connect(client, test_uri);
if (retval != UA_STATUSCODE_GOOD)
{
ua_print("tcp: tcp client closed\r\n");
tcp_recved(tpcb, p->tot_len);
return tcp_close(tpcb);
ua_print("ua: [%s] connect failed\n", __func__);
}
return ERR_OK;
return;
}
void test_ua_connect_thr(void *arg)

2
APP_Framework/Framework/control/plc/interoperability/opcua/ua_client.c

@ -269,7 +269,7 @@ void ua_add_nodes(UA_Client *client)
}
int ua_run_test(UA_Client *client)
int ua_get_server_info(UA_Client *client)
{
UA_StatusCode retval;

Loading…
Cancel
Save