fixed opcua_demo compilation error

This commit is contained in:
wlyu 2022-01-01 00:03:18 +08:00
parent 37cbb51afa
commit d1625c7d84
2 changed files with 3 additions and 7 deletions

View File

@ -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)

View File

@ -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;