Merge pull request #9 from nikalexey/update-http-api

Update httpupdate api
This commit is contained in:
Alex
2021-07-14 00:21:59 +03:00
committed by GitHub
3 changed files with 6 additions and 4 deletions

View File

@@ -90,8 +90,8 @@ const char WiFiPassword[] = "12345678";
//#define FASTLED_ALLOW_INTERRUPTS 0
#include "data.h" // данные
#include "Time.h" // часы
#include "TimeRandom.h" // случайные числа по времени
//#include "FastRandom.h" // быстрый рандом
#include "timeRandom.h" // случайные числа по времени
//#include "fastRandom.h" // быстрый рандом
#include "Button.h" // библа кнопки
#include "palettes.h" // палитры
#include "NTPClient-Gyver.h" // сервер времени (модиф)

View File

@@ -87,7 +87,8 @@ void parsing() {
DEBUG("Update to ");
DEBUGLN(OTA);
delay(100);
ESPhttpUpdate.update(OTA);
WiFiClient client;
ESPhttpUpdate.update(client, OTA);
} break;
case 13: // выключить через
if (data[3] == 0) turnoffTmr.stop();

View File

@@ -18,7 +18,8 @@ board_build.ldscript = eagle.flash.4m2m.ld
board_build.flash_mode = dout
framework = arduino
upload_speed = 460800
monitor_speed = 115200
monitor_speed = 115200
lib_deps = fastled/FastLED@^3.4.0
[env:release]