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

HTTP -> AMPEL_HTTP

parent d0483949
......@@ -18,7 +18,7 @@
#ifdef LORAWAN
# include "lorawan.h"
#endif
#ifdef HTTP
#ifdef AMPEL_HTTP
# include "web_server.h"
#endif
......
......@@ -82,7 +82,7 @@ void setup() {
Serial.println(WiFi.status());
if (WiFi.status() == WL_CONNECTED) {
#ifdef HTTP
#ifdef AMPEL_HTTP
web_server::initialize();
#endif
......@@ -186,7 +186,7 @@ void keepServicesAlive() {
MDNS.update();
#endif
ntp::update(); // NTP client has its own timer. It will connect to NTP server every 60s.
#ifdef HTTP
#ifdef AMPEL_HTTP
web_server::update();
#endif
#ifdef AMPEL_MQTT
......
......@@ -67,7 +67,7 @@
* available at http://local_ip, with user HTTP_USER and password HTTP_PASSWORD
*/
# define HTTP // Comment or remove this line if you want to disable HTTP webserver
# define AMPEL_HTTP // Comment or remove this line if you want to disable HTTP webserver
// Define empty strings in order to disable authentication, or remove the constants altogether.
# define HTTP_USER "co2ampel"
......
Supports Markdown
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