improve ui

This commit is contained in:
2026-08-02 08:06:35 +02:00
parent c6c576174b
commit 65e62f6a39
25 changed files with 298 additions and 740 deletions
-4
View File
@@ -1,14 +1,10 @@
#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);