mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
добавлено OTA и взаимодействие с сервером
This commit is contained in:
24
include/UpgradeFirm.h
Normal file
24
include/UpgradeFirm.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#pragma once
|
||||
#include "Global.h"
|
||||
//#include "Upgrade.h"
|
||||
#ifdef ESP8266
|
||||
//#include "ESP8266.h"
|
||||
#else
|
||||
#include <HTTPUpdate.h>
|
||||
#endif
|
||||
|
||||
struct updateFirm {
|
||||
String settingsFlashJson;
|
||||
String configJson;
|
||||
};
|
||||
|
||||
extern void upgradeInit();
|
||||
extern void getLastVersion();
|
||||
extern void upgrade_firmware(int type);
|
||||
extern bool upgradeFS();
|
||||
extern bool upgradeBuild();
|
||||
extern void restartEsp();
|
||||
|
||||
extern const String getBinPath(String file);
|
||||
extern void putUserDataToRam();
|
||||
extern void saveUserDataToFlash();
|
||||
Reference in New Issue
Block a user