add EVB_LN822x iot exporer demo
add EVB_LN822x iot exporer demo
This commit is contained in:
@@ -151,7 +151,7 @@ void tcp_client_echo_task_entry(void *arg)
|
||||
|
||||
void tcp_client_echo_task_creat(uint8_t * ser_ip, uint32_t port)
|
||||
{
|
||||
target_ser_t ser = {0};
|
||||
static target_ser_t ser = {0};
|
||||
ser.ip = ser_ip;
|
||||
ser.port = port;
|
||||
|
||||
|
@@ -156,7 +156,8 @@ void tcp_server_echo_task_entry(void *arg)
|
||||
|
||||
void tcp_server_echo_task_creat(uint32_t port)
|
||||
{
|
||||
uint32_t server_port = port;
|
||||
static uint32_t server_port;
|
||||
server_port = port;
|
||||
osThreadCreate(osThread(tcp_server_echo_task_entry), &server_port);
|
||||
}
|
||||
|
||||
|
@@ -8,7 +8,7 @@
|
||||
#include "netif/ethernetif.h"
|
||||
#include "wifi_manager/wifi_manager.h"
|
||||
#include "lwip/tcpip.h"
|
||||
#include "drv/drv_adc_measure.h"
|
||||
#include "drv_adc_measure.h"
|
||||
#include "utils/system_parameter.h"
|
||||
#include "hal/hal_adc.h"
|
||||
|
||||
@@ -165,7 +165,7 @@ void application_entry(void *arg)
|
||||
ART_ASSERT(1);
|
||||
}
|
||||
|
||||
reg_wifi_msg_callbcak(wifi_manager_get_handle(), WIFI_MSG_ID_STA_DHCP_GOT_IP,wifi_event_sta_got_ip_cb);
|
||||
reg_wifi_msg_callbcak(WIFI_MSG_ID_STA_DHCP_GOT_IP,wifi_event_sta_got_ip_cb);
|
||||
|
||||
wifi_mode_enum_t wifi_mode = WIFI_MODE_STATION;
|
||||
|
||||
@@ -198,7 +198,7 @@ void application_entry(void *arg)
|
||||
};
|
||||
|
||||
tcp_server_echo_task_creat(8087);
|
||||
tcp_client_echo_task_creat((uint8_t *)"39.108.190.129", 8000);//ͨ<><CDA8>è<EFBFBD><C3A8><EFBFBD><EFBFBD>(IP:120.76.100.197) 10002<30>˿<EFBFBD>
|
||||
// tcp_client_echo_task_creat((uint8_t *)"39.108.190.129", 8000);//ͨ<><CDA8>è<EFBFBD><C3A8><EFBFBD><EFBFBD>(IP:120.76.100.197) 10002<30>˿<EFBFBD>
|
||||
|
||||
while(1)
|
||||
{
|
||||
|
Reference in New Issue
Block a user