mirror of
https://gitlab.com/zwirbel/illucat.git
synced 2025-12-16 10:04:30 +01:00
enable ota over tcp
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#include <WebApiPlugin.h>
|
#include <WebApiPlugin.h>
|
||||||
#include <PixelPlugin.h>
|
#include <PixelPlugin.h>
|
||||||
#include <IrcPlugin.h>
|
#include <IrcPlugin.h>
|
||||||
|
#include <OtaTcpPlugin.cpp>
|
||||||
|
|
||||||
WiFiNet *network;
|
WiFiNet *network;
|
||||||
Sprocket *sprocket;
|
Sprocket *sprocket;
|
||||||
@@ -16,6 +17,7 @@ WebConfigPlugin *webConfigPlugin;
|
|||||||
WebApiPlugin *webApiPlugin;
|
WebApiPlugin *webApiPlugin;
|
||||||
PixelPlugin *pixelPlugin;
|
PixelPlugin *pixelPlugin;
|
||||||
IrcPlugin *ircPlugin;
|
IrcPlugin *ircPlugin;
|
||||||
|
OtaTcpPlugin *otaTcp;
|
||||||
|
|
||||||
void setup()
|
void setup()
|
||||||
{
|
{
|
||||||
@@ -26,11 +28,13 @@ void setup()
|
|||||||
webServerPlugin = new WebServerPlugin({WEB_CONTEXT_PATH, WEB_DOC_ROOT, WEB_DEFAULT_FILE, WEB_PORT});
|
webServerPlugin = new WebServerPlugin({WEB_CONTEXT_PATH, WEB_DOC_ROOT, WEB_DEFAULT_FILE, WEB_PORT});
|
||||||
webConfigPlugin = new WebConfigPlugin(webServerPlugin->server);
|
webConfigPlugin = new WebConfigPlugin(webServerPlugin->server);
|
||||||
webApiPlugin = new WebApiPlugin(webServerPlugin->server);
|
webApiPlugin = new WebApiPlugin(webServerPlugin->server);
|
||||||
|
otaTcp = new OtaTcpPlugin({OTA_PORT, OTA_PASSWORD});
|
||||||
|
|
||||||
sprocket->addPlugin(pixelPlugin);
|
sprocket->addPlugin(pixelPlugin);
|
||||||
sprocket->addPlugin(webServerPlugin);
|
sprocket->addPlugin(webServerPlugin);
|
||||||
sprocket->addPlugin(webConfigPlugin);
|
sprocket->addPlugin(webConfigPlugin);
|
||||||
sprocket->addPlugin(webApiPlugin);
|
sprocket->addPlugin(webApiPlugin);
|
||||||
|
sprocket->addPlugin(otaTcp);
|
||||||
sprocket->addPlugin(ircPlugin);
|
sprocket->addPlugin(ircPlugin);
|
||||||
|
|
||||||
network = new WiFiNet(
|
network = new WiFiNet(
|
||||||
|
|||||||
Reference in New Issue
Block a user