From 26a554ffe1efa95194477ae42ca4e6bf4a5d1074 Mon Sep 17 00:00:00 2001 From: alonewolfx2 Date: Tue, 30 Dec 2014 13:57:08 +0200 Subject: [PATCH] for set wifi issue dhcp client must be stop before setting station ip --- app/modules/wifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/wifi.c b/app/modules/wifi.c index 3b34b2e0..f3b43912 100644 --- a/app/modules/wifi.c +++ b/app/modules/wifi.c @@ -222,7 +222,7 @@ static int ICACHE_FLASH_ATTR wifi_setip( lua_State* L, uint8_t mode ) ip = parse_key(L, "gateway"); if(ip!=0) pTempIp.gw.addr = ip; - + wifi_station_dhcpc_stop(); lua_pushboolean(L,wifi_set_ip_info(mode, &pTempIp)); return 1; }