mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Reduce MQTT publish load.
This commit is contained in:
parent
4e3d8597f5
commit
7c983c9b2e
5 changed files with 87 additions and 95 deletions
3
GitOTA.h
3
GitOTA.h
|
|
@ -35,7 +35,7 @@ class GitRepo {
|
|||
class GitUpdater {
|
||||
public:
|
||||
uint8_t status = 0;
|
||||
unsigned long lastCheck = 0;
|
||||
uint32_t lastCheck = 0;
|
||||
bool updateAvailable = false;
|
||||
appver_t latest;
|
||||
bool cancelled = false;
|
||||
|
|
@ -51,6 +51,7 @@ class GitUpdater {
|
|||
void setCurrentRelease(GitRepo &repo);
|
||||
void loop();
|
||||
void toJSON(JsonObject &obj);
|
||||
int checkInternet();
|
||||
void emitUpdateCheck(uint8_t num=255);
|
||||
void emitDownloadProgress(size_t total, size_t loaded, const char *evt = "updateProgress");
|
||||
void emitDownloadProgress(uint8_t num, size_t total, size_t loaded, const char *evt = "updateProgress");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue