From 3c65fa51d1fa3178cfb2c7fa479ef3506b37f35e Mon Sep 17 00:00:00 2001 From: Adrian <35405447+ascillato@users.noreply.github.com> Date: Fri, 9 Mar 2018 23:48:21 -0300 Subject: [PATCH] Update webserver.ino --- sonoff/webserver.ino | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sonoff/webserver.ino b/sonoff/webserver.ino index fb248a2a7..cae0b27ca 100644 --- a/sonoff/webserver.ino +++ b/sonoff/webserver.ino @@ -25,6 +25,10 @@ * Based on source by AlexT (https://github.com/tzapu) \*********************************************************************************************/ +#ifdef USE_KNX +#include // Include KNX IP library +#endif // USE_KNX + #define STR_HELPER(x) #x #define STR(x) STR_HELPER(x) @@ -367,6 +371,9 @@ void StartWebserver(int type, IPAddress ipweb) } #endif // USE_EMULATION WebServer->onNotFound(HandleNotFound); +#ifdef USE_KNX + knx.start(WebServer); // Start knx. The /knx link is automatically set inside the KNX library +#endif // USE_KNX } reset_web_log_flag = 0; WebServer->begin(); // Web server start