Phase 0/2: API layer kept 1:1, only secrets.h include path fixed

http_client/weather_api/calendar_api/departures_api are hardware-
independent (HTTP GET + ArduinoJson parsing, same endpoints, same
JSON). Kept verbatim per PLAN.md migration strategy; only changed
#include "../../include/secrets.h" -> #include <secrets.h> to match
the PlatformIO include/ layout (no functional change).
This commit is contained in:
2026-08-02 10:28:56 +02:00
parent abb5c62f3b
commit 59198284fd
8 changed files with 204 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include <Arduino.h>
struct ApiResult {
bool success = false;
String body;
int httpCode = -1;
};
ApiResult httpGet(const String &url, uint32_t timeoutMs = 5000);