diff --git a/WifiControlSensor/WebServer.ino b/WifiControlSensor/WebServer.ino index e2b3f67..e3ed495 100644 --- a/WifiControlSensor/WebServer.ino +++ b/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