Possibility to disable Web interface

Save ~12k
This commit is contained in:
Mathieu Maret 2016-10-28 18:02:39 +02:00
parent 76c06690a2
commit a14210e0d9

View File

@ -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