Commit 7981d192 authored by Eric Duminil's avatar Eric Duminil
Browse files

Refactor: mDNS isn't needed if WIFI is disabled.

parent 5fabf57a
...@@ -20,6 +20,12 @@ ...@@ -20,6 +20,12 @@
# ifdef AMPEL_HTTP # ifdef AMPEL_HTTP
# include "web_server.h" # include "web_server.h"
# endif # endif
# if defined(ESP8266)
//allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
# include <ESP8266mDNS.h>
# elif defined(ESP32)
# include <ESPmDNS.h>
# endif
#endif #endif
#ifdef AMPEL_LORAWAN #ifdef AMPEL_LORAWAN
...@@ -30,12 +36,6 @@ ...@@ -30,12 +36,6 @@
#include "co2_sensor.h" #include "co2_sensor.h"
#include "led_effects.h" #include "led_effects.h"
#if defined(ESP8266)
//allows sensor to be seen as SENSOR_ID.local, from the local network. For example : espd03cc5.local
# include <ESP8266mDNS.h>
#elif defined(ESP32)
# include <ESPmDNS.h>
#endif
void keepServicesAlive(); void keepServicesAlive();
void checkFlashButton(); void checkFlashButton();
......
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