Skip to content

Commit 169a436

Browse files
author
Espressif Systems
committed
1.remove udhcp related codes;
1 parent a82668f commit 169a436

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

app/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ LINKFLAGS_eagle.app.v6 = \
6565
-lmain \
6666
-lfreertos \
6767
-llwip \
68-
-ludhcp \
6968
$(DEP_LIBS_eagle.app.v6) \
7069
-Wl,--end-group
7170

app/user/user_main.c

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -168,34 +168,6 @@ user_init(void)
168168
wifi_station_set_config(config);
169169
free(config);
170170
}
171-
172-
{
173-
struct ip_info ipinfo;
174-
175-
ipinfo.gw.addr = ipaddr_addr("192.168.145.253");
176-
ipinfo.ip.addr = ipaddr_addr("192.168.145.253");
177-
ipinfo.netmask.addr = ipaddr_addr("255.255.255.0");
178-
179-
wifi_set_ip_info(SOFTAP_IF, &ipinfo);
180-
}
181-
182-
{
183-
struct dhcp_info *pdhcp_info = NULL;
184-
185-
pdhcp_info = (struct dhcp_info *)zalloc(sizeof(struct dhcp_info));
186-
pdhcp_info->start_ip = ipaddr_addr("192.168.145.100");
187-
pdhcp_info->end_ip = ipaddr_addr("192.168.145.110"); // don't set the range too large, because it will cost memory.
188-
pdhcp_info->max_leases = 10;
189-
pdhcp_info->auto_time = 60;
190-
pdhcp_info->decline_time = 60;
191-
pdhcp_info->conflict_time = 60;
192-
pdhcp_info->offer_time = 60;
193-
pdhcp_info->min_lease_sec = 60;
194-
dhcp_set_info(pdhcp_info);
195-
free(pdhcp_info);
196-
}
197-
198-
udhcpd_start();
199171

200172
xTaskCreate(task2, "tsk2", 256, NULL, 2, NULL);
201173
xTaskCreate(task3, "tsk3", 256, NULL, 2, NULL);

0 commit comments

Comments
 (0)