Commit f5b118ba authored by Eric Duminil's avatar Eric Duminil
Browse files

Removing unused code

parent 1a2aa6ff
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
#include "util.h" #include "util.h"
#include "sensor_console.h" #include "sensor_console.h"
#include <IotWebConfTParameter.h>
#include <IotWebConf.h> #include <IotWebConf.h>
#include <IotWebConfTParameter.h>
#include <IotWebConfOptionalGroup.h> #include <IotWebConfOptionalGroup.h>
//TODO: Check memory consumption. Disable DEBUG info? //TODO: Check memory consumption. Disable DEBUG info?
...@@ -237,12 +237,6 @@ namespace web_config { ...@@ -237,12 +237,6 @@ namespace web_config {
# endif # endif
iotWebConf->setWifiConnectionTimeoutMs(1000UL * WIFI_TIMEOUT); iotWebConf->setWifiConnectionTimeoutMs(1000UL * WIFI_TIMEOUT);
#if defined(ESP8266)
WiFi.hostname(ampel.sensorId);
#elif defined(ESP32)
WiFi.setHostname(ampel.sensorId);
#endif
iotWebConf->skipApStartup(); iotWebConf->skipApStartup();
//TODO: Add callbacks //TODO: Add callbacks
//TODO: Add LED effects //TODO: Add LED effects
......
...@@ -16,10 +16,8 @@ ...@@ -16,10 +16,8 @@
#include <IotWebConfTParameter.h> #include <IotWebConfTParameter.h>
#if defined(ESP8266) #if defined(ESP8266)
# include <ESP8266WebServer.h> # 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) #elif defined(ESP32)
# include <WebServer.h> # include <WebServer.h>
# include <ESPmDNS.h>
#endif #endif
namespace config { namespace config {
......
...@@ -16,8 +16,6 @@ platform = espressif8266 ...@@ -16,8 +16,6 @@ platform = espressif8266
board = esp12e board = esp12e
framework = arduino framework = arduino
monitor_speed = 115200 monitor_speed = 115200
;build_flags =
; -D IOTWEBCONF_DEBUG_DISABLED
lib_deps = lib_deps =
EEPROM EEPROM
DNSServer DNSServer
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment