From a14210e0d9184138f02fbae7d4184e2e2fea023a Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Fri, 28 Oct 2016 18:02:39 +0200 Subject: [PATCH] Possibility to disable Web interface Save ~12k --- WifiControlSensor/WebServer.ino | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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