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

Removing unused code

parent 1a2aa6ff
......@@ -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
......
......@@ -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 {
......
......@@ -16,8 +16,6 @@ platform = espressif8266
board = esp12e
framework = arduino
monitor_speed = 115200
;build_flags =
; -D IOTWEBCONF_DEBUG_DISABLED
lib_deps =
EEPROM
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