fixed the bug of UaGetInfo

This commit is contained in:
wlyu
2022-01-10 18:22:44 +08:00
parent 51de336db1
commit bb0425d1b2
3 changed files with 40 additions and 33 deletions

View File

@@ -102,7 +102,7 @@ void *test_ua_get_server_info(void *param)
{
UA_Client *client = UA_Client_new();
ua_print("ua: [%s] start ...\n", __func__);
ua_pr_info("ua: [%s] start ...\n", __func__);
if (client == NULL)
{
@@ -121,12 +121,15 @@ void *test_ua_get_server_info(void *param)
}
ua_print("ua: [%s] connect ok!\n", __func__);
ua_print("--- start read time ---\n", __func__);
ua_pr_info("--- start read time ---\n", __func__);
ua_read_time(client);
ua_print("--- get server info ---\n", __func__);
ua_get_server_info(client);
ua_pr_info("--- get server info ---\n", __func__);
ua_browser_objects(client);
/* Same thing, this time using the node iterator... */
ua_browser_nodes(client);
/* Clean up */
UA_Client_disconnect(client);