Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
co2ampel
ampel-firmware
Commits
f5b118ba
Commit
f5b118ba
authored
Feb 10, 2022
by
Eric Duminil
Browse files
Removing unused code
parent
1a2aa6ff
Changes
3
Hide whitespace changes
Inline
Side-by-side
ampel-firmware/web_config.cpp
View file @
f5b118ba
...
...
@@ -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
...
...
ampel-firmware/web_server.cpp
View file @
f5b118ba
...
...
@@ -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
{
...
...
platformio.ini
View file @
f5b118ba
...
...
@@ -16,8 +16,6 @@ platform = espressif8266
board
=
esp12e
framework
=
arduino
monitor_speed
=
115200
;build_flags =
; -D IOTWEBCONF_DEBUG_DISABLED
lib_deps
=
EEPROM
DNSServer
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment