Merge branch 'dhcp' of https://github.com/Governa/esp-open-rtos into
Governa-dhcp # Conflicts: # examples/access_point/access_point.c # extras/dhcpserver/dhcpserver.c # extras/dhcpserver/include/dhcpserver.h
This commit is contained in:
commit
548e2b5596
4 changed files with 65 additions and 73 deletions
|
|
@ -40,6 +40,11 @@ DEFINE_TESTCASE(04_wifi_basic, DUAL)
|
|||
|
||||
static void server_task(void *pvParameters)
|
||||
{
|
||||
|
||||
ip_addr_t first_client_ip;
|
||||
IP4_ADDR(&first_client_ip, 172, 16, 0, 2);
|
||||
dhcpserver_start(sdk_system_get_netif(SOFTAP_IF), &first_client_ip, 4);
|
||||
|
||||
char buf[BUF_SIZE];
|
||||
struct netconn *nc = netconn_new(NETCONN_TCP);
|
||||
TEST_ASSERT_TRUE_MESSAGE(nc != 0, "Failed to allocate socket");
|
||||
|
|
@ -103,10 +108,6 @@ static void a_04_wifi_basic(void)
|
|||
};
|
||||
sdk_wifi_softap_set_config(&ap_config);
|
||||
|
||||
ip_addr_t first_client_ip;
|
||||
IP4_ADDR(&first_client_ip, 172, 16, 0, 2);
|
||||
dhcpserver_start(&first_client_ip, 4);
|
||||
|
||||
xTaskCreate(server_task, "setver_task", 1024, NULL, 2, NULL);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue