Initial commit

This commit is contained in:
2026-08-01 23:38:09 +02:00
parent 0d9cca3668
commit a99b986544
28 changed files with 1476 additions and 1 deletions
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <Arduino.h>
// Result of a GET request against one of the JSON APIs.
struct ApiResult {
bool success = false;
String body;
int httpCode = -1;
};
// Performs a simple HTTP GET request with a timeout and returns the raw body.
// Kept deliberately simple: no retries here, retry logic lives in the screens
// (either via the regular refresh timer or a manual button press).
ApiResult httpGet(const String &url, uint32_t timeoutMs = 5000);