diff --git a/ampel-firmware.h b/ampel-firmware.h index 12515acad71a121699dc91c4293012a27ff68e5c..15b598e30161dca137db904ef9c9bb44b86c7c87 100644 --- a/ampel-firmware.h +++ b/ampel-firmware.h @@ -18,7 +18,7 @@ #ifdef LORAWAN # include "lorawan.h" #endif -#ifdef HTTP +#ifdef AMPEL_HTTP # include "web_server.h" #endif diff --git a/ampel-firmware.ino b/ampel-firmware.ino index 387eb1307a6ec1d19903a6de6d32f8465014ccc0..43aa9e6e347af6ddb5e45d7f1b92625f6eef26d6 100644 --- a/ampel-firmware.ino +++ b/ampel-firmware.ino @@ -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 diff --git a/config.public.h b/config.public.h index d4ae25e93fe8aed474c1506b962f35a0946c512f..e588c6300dc4d2595e451069b9850584880586a1 100644 --- a/config.public.h +++ b/config.public.h @@ -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"