1. fixed IRQ interrupt

2. changed lwip test command
3. merge dns and ping command
4. change test to cmd_lwip
This commit is contained in:
wlyu
2022-01-07 13:56:54 +08:00
parent ddb889623d
commit 877ef9e221
19 changed files with 556 additions and 546 deletions

View File

@@ -121,7 +121,7 @@ static void UdpSocketThreadServer(void *arg)
lw_print("Receive from : %s\n",inet_ntoa(seraddr.sin_addr));
lw_print("Recevce data : %s\n\n",recv_data);
lw_print("Receive data : %s\n\n",recv_data);
sendto(sock,recv_data,
recv_data_len,0,

View File

@@ -71,14 +71,15 @@ static void test_ua_connect(void *arg)
UA_ClientConfig *config = UA_Client_getConfig(client);
UA_ClientConfig_setDefault(config);
retval = UA_Client_connect(client, test_uri);
if (retval != UA_STATUSCODE_GOOD)
{
ua_print("ua: [%s] connect failed\n", __func__);
ua_print("ua: [%s] ret %x\n", __func__, retval);
}
return;
ua_print("ua: [%s] start Ua Test!\n", __func__);
UA_Client_disconnect(client);
UA_Client_delete(client);
}
void test_ua_connect_thr(void *arg)
@@ -93,7 +94,6 @@ void test_sh_ua_connect(void)
int result = 0;
pthread_t th_id;
pthread_attr_t attr;
sys_thread_new("ua test", test_ua_connect_thr, NULL, 4096, 15);
}
@@ -117,21 +117,19 @@ void *test_ua_get_server_info(void *param)
UA_StatusCode retval = UA_Client_connect(client, OPC_SERVER);
if(retval != UA_STATUSCODE_GOOD) {
ua_print("ua: [%s] connect failed %d\n", __func__, retval);
ua_print("ua: [%s] connect failed %#x\n", __func__, retval);
UA_Client_delete(client);
return NULL;
}
ua_print("ua: [%s] connect ok!\n", __func__);
while(1)
{
ua_read_time(client);
ua_get_server_info(client);
}
ua_read_time(client);
ua_get_server_info(client);
/* Clean up */
// UA_Client_disconnect(client);
// UA_Client_delete(client); /* Disconnects the client internally */
UA_Client_disconnect(client);
UA_Client_delete(client); /* Disconnects the client internally */
}
void *test_ua_get_server_info_thr(void *arg)