Skip to content

FastLED with ESP8266 and mqtt.connect fails #1884

@nygma2004

Description

@nygma2004

Please delete this if this is not an issue, but I was not sure where and how to ask.
I have a few year old project that I needed to recompile now. When I uploaded it to a D1 Mini, the code fails to connect to the MQTT server. The code seem to just hang and the WDT restarts the ESP. I tried a simple MQTT example code and it works fine.
This project uses a single neopixel for status and since it was not essential for the project, I commected out everything related to FastLED. And now MQTT works.
I am OK when it comes to creating functional code, but this is over my head.

This is my FastLED related code snippets:

#include <FastLED.h>

#define RGBLED_PIN D3        // Neopixel led D3
#define NUM_LEDS 1
#define LED_TYPE    WS2812
#define COLOR_ORDER GRB
#define BRIGHTNESS  32        // Default LED brightness.

CRGB leds[NUM_LEDS];

FastLED.addLeds<LED_TYPE, RGBLED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalSMD5050 );
FastLED.setBrightness( BRIGHTNESS );
leds[0] = CRGB::Pink;
FastLED.show();

Any pointers what and how to test would be appreciated.

I am using Arduino IDE 2.3.4, FastLED is updated to 3.9.13 now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions