From efa9849f1bb137fe44283b8bcb49d62277a08b64 Mon Sep 17 00:00:00 2001 From: Patrick Balsiger Date: Sat, 24 Nov 2018 14:15:17 +0100 Subject: [PATCH] enable ota over tcp --- src/var/illuchat/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/var/illuchat/main.cpp b/src/var/illuchat/main.cpp index ea8015b..d6abeec 100644 --- a/src/var/illuchat/main.cpp +++ b/src/var/illuchat/main.cpp @@ -8,6 +8,7 @@ #include #include #include +#include WiFiNet *network; Sprocket *sprocket; @@ -16,6 +17,7 @@ WebConfigPlugin *webConfigPlugin; WebApiPlugin *webApiPlugin; PixelPlugin *pixelPlugin; IrcPlugin *ircPlugin; +OtaTcpPlugin *otaTcp; void setup() { @@ -26,11 +28,13 @@ void setup() webServerPlugin = new WebServerPlugin({WEB_CONTEXT_PATH, WEB_DOC_ROOT, WEB_DEFAULT_FILE, WEB_PORT}); webConfigPlugin = new WebConfigPlugin(webServerPlugin->server); webApiPlugin = new WebApiPlugin(webServerPlugin->server); + otaTcp = new OtaTcpPlugin({OTA_PORT, OTA_PASSWORD}); sprocket->addPlugin(pixelPlugin); sprocket->addPlugin(webServerPlugin); sprocket->addPlugin(webConfigPlugin); sprocket->addPlugin(webApiPlugin); + sprocket->addPlugin(otaTcp); sprocket->addPlugin(ircPlugin); network = new WiFiNet(