Stream all responses. Fix missing ETH IP address #310

This commit is contained in:
Robert Strouse 2024-04-09 13:46:51 -07:00
parent 6ba354c7ff
commit 026f9315b1
19 changed files with 1361 additions and 456 deletions

View file

@ -4,6 +4,7 @@
#include <ArduinoJson.h>
#include <time.h>
#include "ConfigSettings.h"
#include "WResp.h"
#define GIT_MAX_RELEASES 5
#define GIT_STATUS_READY 0
@ -28,13 +29,14 @@ class GitRelease {
void setReleaseProperty(const char *key, const char *val);
void setAssetProperty(const char *key, const char *val);
bool toJSON(JsonObject &obj);
void toJSON(JsonResponse &json);
};
class GitRepo {
public:
int16_t getReleases(uint8_t num = GIT_MAX_RELEASES);
GitRelease releases[GIT_MAX_RELEASES + 1];
bool toJSON(JsonObject &obj);
void toJSON(JsonResponse &json);
};
class GitUpdater {
public:
@ -59,6 +61,7 @@ class GitUpdater {
void setCurrentRelease(GitRepo &repo);
void loop();
void toJSON(JsonObject &obj);
void toJSON(JsonResponse &json);
bool recoverFilesystem();
int checkInternet();
void emitUpdateCheck(uint8_t num=255);