From dd90c7278c43222eca472074fdd2ae0a42559a1e Mon Sep 17 00:00:00 2001 From: Thorsten von Eicken Date: Fri, 19 Jun 2015 12:39:11 -0700 Subject: [PATCH] set hostname via DHCP --- user/cgiwifi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/cgiwifi.c b/user/cgiwifi.c index 8410bb9..fcbe8c6 100644 --- a/user/cgiwifi.c +++ b/user/cgiwifi.c @@ -447,7 +447,7 @@ int ICACHE_FLASH_ATTR cgiWifiInfo(HttpdConnData *connData) { // Init the wireless, which consists of setting a timer if we expect to connect to an AP // so we can revert to STA+AP mode if we can't connect. void ICACHE_FLASH_ATTR wifiInit() { - //wifi_station_set_hostname("esp-link"); + wifi_station_set_hostname("esp-link"); int x = wifi_get_opmode() & 0x3; os_printf("Wifi init, mode=%s\n", wifiMode[x]); wifi_set_phy_mode(2);