A ton of things
Some checks failed
Test compiling project / test (push) Failing after 1m38s

This commit is contained in:
2025-02-14 21:27:04 +01:00
parent 04b2aba6ca
commit 5738eb4451
9 changed files with 333 additions and 41 deletions

29
lib/fetchOTA/utils.h Normal file
View File

@@ -0,0 +1,29 @@
#ifdef UNIT_TEST
#include <string>
typedef std::string String;
#else
#include <WString.h>
#endif
struct Version {
int major;
int minor;
int patch;
};
struct Firmware {
Version version;
String url;
bool valid;
String error;
};
struct Configuration {
Version version;
String url;
String Board;
String Config;
};
Version parseVersion(const char *versionStr);
Configuration getLatestConfiguration(Configuration *configs, int count);