Added ESP8266HTTPUpdateServer, better than Arduino OTA
This commit is contained in:
parent
39d5b5ba42
commit
ca79367153
1 changed files with 695 additions and 687 deletions
|
@ -39,6 +39,10 @@
|
|||
ESP8266WebServer server(80);
|
||||
WebSocketsServer webSocket = WebSocketsServer(81);
|
||||
|
||||
#ifdef HTTP_OTA
|
||||
#include <ESP8266HTTPUpdateServer.h>
|
||||
ESP8266HTTPUpdateServer httpUpdater;
|
||||
#endif
|
||||
|
||||
// ***************************************************************************
|
||||
// Load libraries / Instanciate WS2812FX library
|
||||
|
@ -569,6 +573,10 @@ void setup() {
|
|||
getStatusJSON();
|
||||
});
|
||||
|
||||
#ifdef HTTP_OTA
|
||||
httpUpdater.setup(&server,"/update");
|
||||
#endif
|
||||
|
||||
server.begin();
|
||||
|
||||
// Start MDNS service
|
||||
|
|
Loading…
Reference in a new issue