Add platformio

This commit is contained in:
T
2026-09-27 15:39:38 +02:00
parent aee1d3e0ef
commit fe77b61813
4 changed files with 26 additions and 8 deletions
+4 -6
View File
@@ -3,20 +3,18 @@
* TJ-56-654 Weather Clock v1.9.3
*/
// Include AsyncHTTPRequest BEFORE globals.h to provide full type definition
// Include asyncHTTPrequest before globals.h to provide the full type definition
#include <ESPAsyncTCP.h>
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN_TARGET "AsyncHTTPRequest_Generic v1.13.0"
#define ASYNCHTTPREQUEST_GENERIC_VERSION_MIN 1013000
#include <AsyncHTTPRequest_Generic.h>
#include <asyncHTTPrequest.h>
#include "globals.h"
#include <ArduinoJson.h>
// Async HTTP client for weather (local to this file)
static AsyncHTTPRequest weatherRequest;
static asyncHTTPrequest weatherRequest;
// Weather response callback
void ICACHE_FLASH_ATTR onWeatherResponse(void* optParm, AsyncHTTPRequest* request, int readyState) {
void ICACHE_FLASH_ATTR onWeatherResponse(void* optParm, asyncHTTPrequest* request, int readyState) {
(void)optParm; // Unused
if (readyState == 4) { // Request complete