diff --git a/ampel-firmware/web_config.cpp b/ampel-firmware/web_config.cpp index e0c129713ec21e00a184d6bf725193893901fe49..f7ef657203f96841922149d0e9930ed6cc6f9383 100644 --- a/ampel-firmware/web_config.cpp +++ b/ampel-firmware/web_config.cpp @@ -14,8 +14,8 @@ #include "util.h" #include "sensor_console.h" -#include <IotWebConfTParameter.h> #include <IotWebConf.h> +#include <IotWebConfTParameter.h> #include <IotWebConfOptionalGroup.h> //TODO: Check memory consumption. Disable DEBUG info? @@ -237,12 +237,6 @@ namespace web_config { # endif iotWebConf->setWifiConnectionTimeoutMs(1000UL * WIFI_TIMEOUT); -#if defined(ESP8266) - WiFi.hostname(ampel.sensorId); -#elif defined(ESP32) - WiFi.setHostname(ampel.sensorId); -#endif - iotWebConf->skipApStartup(); //TODO: Add callbacks //TODO: Add LED effects diff --git a/ampel-firmware/web_server.cpp b/ampel-firmware/web_server.cpp index 05f2c3ab91ad6468f1ccf84c27605a6019b6140c..11c5f61182cf542aa0365b095426df355e49fc5a 100644 --- a/ampel-firmware/web_server.cpp +++ b/ampel-firmware/web_server.cpp @@ -16,10 +16,8 @@ #include <IotWebConfTParameter.h> #if defined(ESP8266) # include <ESP8266WebServer.h> -# include <ESP8266mDNS.h> //allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local #elif defined(ESP32) # include <WebServer.h> -# include <ESPmDNS.h> #endif namespace config { diff --git a/platformio.ini b/platformio.ini index 07cf7a00cf1c689b601251d9f2035d36ccbb198f..a0443ae3711a6f5578fd64a6e592367181c653d3 100644 --- a/platformio.ini +++ b/platformio.ini @@ -16,8 +16,6 @@ platform = espressif8266 board = esp12e framework = arduino monitor_speed = 115200 -;build_flags = -; -D IOTWEBCONF_DEBUG_DISABLED lib_deps = EEPROM DNSServer