Browse Source

Possibility to disable Web interface

Save ~12k
gpiosensors
Mathieu Maret 5 years ago
parent
commit
a14210e0d9
  1. 13
      WifiControlSensor/WebServer.ino

13
WifiControlSensor/WebServer.ino

@ -1,3 +1,4 @@
#ifndef CONFIG_DISABLE_WEB
const int gpioWebConf[] = CONFIG_WEB_CONTROLLED_GPIO;
const int pwmWebConf[] = CONFIG_CONTROLLED_PWM;
@ -296,5 +297,13 @@ void WebSetupServer(int ) {
server.begin();
SKETCH_DEBUG_PRINTLN("HTTP server started");
}
#else
void WebHandleRoot(){}
void WebHandleSetup(){}
void WebHandleGpio(){}
void WebHandleSave(){}
void WebHandleOTA(){}
void WebHandleNotFound(){}
void WebSetupServer(int bootmode){}
#endif
Loading…
Cancel
Save