Repository navigation
Closed as not planned
Labels
sanitizedTitle, body and conversation screened; review text requires separate screening.status: triageNeeds initial assessmenttype: bugSomething is broken
Description
Board / MCU
ESP32
LED Chipset
WS2812B / NeoPixel
FastLED Version
3.10.9
Arduino / PlatformIO version
Arduino 2.3.10
Operating System
Windows
Description
I'm sorry, but there's a problem between FastLED and HTTPS with the latest version of FastLED and Expressive version 3. The connection returns a 200 code on the first loop iteration, but then returns -1. However, it works with Expressive version 2.0.17 and FastLED version 6.4.0.
Steps to reproduce
All
Minimal sketch
#include "FastLED.h"
#include <WiFi.h>
#include <WiFiMulti.h>
#include <HTTPClient.h>
#include <WiFiClientSecure.h>
WiFiMulti wifiMulti;
const char* ssid = "XXXXXXXXXXX"; // your network SSID (name)
const char* password = "xxxxxxxxxxxxxxxxx"; // your network password
const String host = "https://aviationweather.gov/api/data/metar?format=json&ids=";
// Define Leds
#define No_Stations 35 // Number of Stations also Number of LEDs
#define DATA_PIN 5 // Connect to pin D5/P5 with 330 to 500 Ohm Resistor
#define LED_TYPE WS2812 // WD2811 or WS2812 or NEOPIXEL
#define COLOR_ORDER GRB // WD2811 are RGB or WS2812 are GRB
#define BRIGHTNESS 10 // Master LED Brightness (<12=Dim 20=ok >20=Too Bright/Much Power)
// Define STATIONS & Global Variables
const std::vector<String> Stations { // << Set Up - Do NOT change this line
"NULL, STATION NAME ", // 0 << Reserved - Do NOT change this line
"LPPT, LISBONE, GA ", // 1
"LEMD, MADRID, GA ", // 2
"LEVC, VALENCE, GA ", // 3
"LEBL, BARCELONE, GA ", // 4
"LFBO, TOULOUSE, GA ", // 5
"LFMT, MONTPELLIER, GA ", // 6
"LFTW, UZES NIMES, GA ", // 7
"LFML, MARSEILLE, GA ", // 8
"LFMN, NICE, GA ", // 9
"LFKJ, AJACCIO, GA ", // 10
"LIEE, CAGLIARI, GA ", // 11
"LIRN, NAPLES, GA ", // 12
"LIRP, PISE, GA ", // 13
"LIPZ, VENISE, GA ", // 14
"LIMC, MILAN, GA ", // 15
"LSGG, GENEVE, GA ", // 16
"LFLL, LYON, GA ", // 17
"LFLC, CLERMONT FERRAND, GA ", // 18
"LFPO, ORLY, GA ", // 19
"LFPG, CDG, GA ", // 20
"LFST, STRASBOURG, GA ", // 21
"LSZH, ZURICH, GA ", // 22
"EDDM, MUNICH, GA ", // 23
"EDDF, FRANKFURT, GA ", // 24
"ESGG, GOTEBORG, GA ", // 25
"EHAM, AMSTERDAM, GA ", // 26
"EGLL, LONDRE, GA ", // 27
"EIDW, DUBLIN, GA ", // 28
"LFRC, CHERBOURG, GA ", // 29
"LFRB, BREST, GA ", // 30
"LFRZ, STNAZAIRE, GA ", // 31
"LFBH, LAROCHELLE, GA ", // 32
"LFBD, BORDEAUX, GA ", // 33
"LFBA, AGEN, GA ", // 34
"LFBZ, BIARRITZ, GA ", // 35
};
String metar; // Raw METAR data // << Do NOT change this line
String rem[No_Stations + 1]; // Remarks
String wind[No_Stations + 1]; // wind speed
String category[No_Stations + 1]; // NULL VFR MVFR IFR LIFR
//..............................................Black Green Blue Red Magenta
void setup() {
Serial.begin(115200);
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED){
delay(300); // Wait a little bit
}
WiFi.mode(WIFI_STA);
wifiMulti.addAP(ssid, password);
}
void loop() {
String urls = "";
for (int j = 1; j <= No_Stations; j++) {
String station = Stations[j].substring(0, 5);
urls = urls + String (station);
}
int len = urls.length();
urls = urls.substring(0, len - 1);
if (wifiMulti.run() == WL_CONNECTED) {
WiFiClientSecure client;
client.setInsecure();
HTTPClient https;
if (https.begin(client, host + urls)) {
https.addHeader("Connection", "close");
metar = "";
int httpCode = https.GET();
Serial.println(httpCode);
if (httpCode == HTTP_CODE_OK) {
metar = https.getString();
}
https.end();
} else {
delay(5000);
return;
}
}
delay(10000);
}Serial / debug output
200
-1
-1Checklist
- I have searched existing issues for duplicates
- I have tested with the latest FastLED release or git master
- I can reproduce this with a minimal sketch
Metadata
Metadata
Assignees
Labels
sanitizedTitle, body and conversation screened; review text requires separate screening.status: triageNeeds initial assessmenttype: bugSomething is broken
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Nov 9, 2026
Thanks for the report, @patrice916. This duplicates #5010 (#5010): same sketch and endpoint, the same ESP32 core 3.x / FastLED 3.10.9 combination, and HTTPS works on the first request and fails after that. Further discussion belongs there.
A related ESP32 C++ guard bug (#4994) is fixed on master by #5007. The fix isn't in a release yet. The 200-then-
-1failure you describe has not been reproduced independently, so we can't promise that #5007 is the cause or that it fixes it. Please try master:lib_deps = https://github.com/FastLED/FastLED.gitIf it still fails on master, please reopen #5010 and include the serial output and your exact ESP32 Arduino core version (for example 3.x.y).