mirror of
https://github.com/AlexGyver/GyverLamp2.git
synced 2025-08-07 08:40:35 +03:00
Merge pull request #9 from nikalexey/update-http-api
Update httpupdate api
This commit is contained in:
@@ -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" // сервер времени (модиф)
|
||||
|
@@ -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();
|
||||
|
@@ -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]
|
||||
|
Reference in New Issue
Block a user