NimmLor/esp8266-fastled-iot-webserver

Some problem for MQTT and ALEXA support...

Opened this issue · 6 comments

(Sorry,my English isn't well because my country don't always use English.)

if i ENABLE_MQTT_SUPPORT (line=165)

image

Arduino says:
macro "SERIAL_DEBUG_ADDF" passed 2 arguments, but takes just 1
(line=1448)

and if i ENABLE_ALEXA_SUPPORT (line=159)

image

Arduino says:
'AUDIOPATTERN' was not declared in this scope
(line=4443)

how to fix it?
Thanks.

Hi,

Your english seems great, nothing to worry about.

The first bug has been fixed in the "in-development" branch. Can you check out this branch and compile it again?

The second one is just a placeholder. You need to select an available pattern.

Have a look here:

PatternAndNameList patterns = {
// Time patterns
#if LED_DEVICE_TYPE == 2 // palet speed color spark twinkle
{ displayTimeStatic, "Time", true, true, true, false, false},
{ displayTimeColorful, "Time Colorful", true, true, false, false, false},
{ displayTimeGradient, "Time Gradient", true, true, false, false, false},
{ displayTimeGradientLarge, "Time Gradient large", true, true, false, false, false},
{ displayTimeRainbow, "Time Rainbow", true, true, false, false, false},
#endif
#if LED_DEVICE_TYPE == 3 // palet speed color spark twinkle
{ pride_Waves, "Pride Waves", true, true, false, false, false},
{ pride_Rings, "Pride Rings", true, true, false, false, false},
{ colorWaves_hori, "Vertical Waves", true, true, false, false, false},
{ colorWaves_vert, "Color Rings", true, true, false, false, false},
{ rainbow_vert, "Vertical Rainbow", true, true, false, false, false},
#endif
// animation patterns // palet speed color spark twinkle
{ pride, "Pride", false, false, false, false, false},
{ colorWaves, "Color Waves", false, false, false, false, false},
{ rainbow, "Horizontal Rainbow", false, true, false, false, false},
{ rainbowSolid, "Solid Rainbow", false, true, false, false, false},
{ confetti, "Confetti", false, true, false, false, false},
{ sinelon, "Sinelon", true, true, false, false, false},
{ bpm, "Beat", true, true, false, false, false},
{ juggle, "Juggle", false, true, false, false, false},
{ fire, "Fire", false, true, false, true, false},
{ water, "Water", false, true, false, true, false},
{ solid_strobe, "Strobe", false, true, true, false, false},
{ rainbow_strobe, "Rainbow Strobe", false, true, false, false, false},
{ smooth_rainbow_strobe, "Smooth Rainbow Strobe", false, true, false, false, false},
// DigitalJohnson patterns // palet speed color spark twinkle
{ rainbowRoll, "Rainbow Roll", false, true, false, false, false},
{ rainbowBeat, "Rainbow Beat", false, true, false, false, false},
{ randomPaletteFades, "Palette Fades", true, true, false, false, false},
{ rainbowChase, "Rainbow Chase", false, true, false, false, false},
{ randomDots, "Rainbow Dots", false, true, false, false, false},
{ randomFades, "Rainbow Fades", false, true, false, false, false},
{ policeLights, "Police Lights", false, true, false, false, false},
{ glitter, "Glitter", false, true, false, false, false},
{ snowFlakes, "Snow Flakes", false, true, false, false, false},
{ lightning, "Lightning", false, false, false, false, false},
// twinkle patterns // palet speed color spark twinkle
{ paletteTwinkles, "Palette Twinkles", true, true, false, false, true},
{ snowTwinkles, "Snow Twinkles", false, true, false, false, true},
{ incandescentTwinkles, "Incandescent Twinkles", false, true, false, false, true},
// TwinkleFOX patterns // palet speed color spark twinkle
{ retroC9Twinkles, "Retro C9 Twinkles", false, true, false, false, true},
{ redWhiteTwinkles, "Red & White Twinkles", false, true, false, false, true},
{ blueWhiteTwinkles, "Blue & White Twinkles", false, true, false, false, true},
{ redGreenWhiteTwinkles, "Red, Green & White Twinkles", false, true, false, false, true},
{ fairyLightTwinkles, "Fairy Light Twinkles", false, true, false, false, true},
{ snow2Twinkles, "Snow 2 Twinkles", false, true, false, false, true},
{ hollyTwinkles, "Holly Twinkles", false, true, false, false, true},
{ iceTwinkles, "Ice Twinkles", false, true, false, false, true},
{ partyTwinkles, "Party Twinkles", false, true, false, false, true},
{ forestTwinkles, "Forest Twinkles", false, true, false, false, true},
{ lavaTwinkles, "Lava Twinkles", false, true, false, false, true},
{ fireTwinkles, "Fire Twinkles", false, true, false, false, true},
{ cloud2Twinkles, "Cloud 2 Twinkles", false, true, false, false, true},
{ oceanTwinkles, "Ocean Twinkles", false, true, false, false, true},
#ifdef ENABLE_UDP_VISUALIZATION
// Visualization Patterns
#if LED_DEVICE_TYPE == 1 // Matrix // palet speed color spark twinkle
{ RainbowVisualizer, "Rainbow Visualization", true, true, false, false, false},
{ SingleColorVisualizer, "Single Color Visualization", true, true, true, false, false},
{ RainbowVisualizerDoubleSided, "Rainbow Visualization Outside", true, true, false, false, false},
{ SingleColorVisualizerDoubleSided, "Single Color Visualization Outside" true, true, true, false, false},
#ifdef AddLogoVisualizers
#if LENGTH == 32 && HEIGHT == 8 // Logo Visualizers
{ HbzVisualizerRainbow, "Hbz Visualizer Spectrum", true, true, false, false, false},
{ HbzVisualizerWhite, "Hbz Visualizer", true, true, false, false, false},
#endif
#endif
#endif
#ifdef LED_DEVICE_TYPE // Generic Visualization Patterns // palet speed color spark twinkle
{ vuMeterSolid, "Solid Volume Visualizer", true, true, false, false, false},
{ vuMeterStaticRainbow, "Static Rainbow Volume Visualizer", true, true, false, false, false},
{ vuMeterRainbow, "Flowing Rainbow Volume Visualizer", true, true, false, false, false},
{ vuMeterTriColor, "Tri-Color Volume Visualizer", true, true, false, false, false},
{ RefreshingVisualizer, "Wave Visualizer", true, true, false, false, false},
{ CentralVisualizer, "Center Visualizer", true, true, false, false, false},
{ SolidColorDualTone, "Solid-Color Pair Bullet Visualizer", true, true, true, false, false},
{ SolidColorComplementary, "Solid-Color Complementary Bullet Visualizer", true, true, true, false, false},
{ BluePurpleBullets, "Blue/Purple Bullet Visualizer", true, true, false, false, false},
{ BulletVisualizer, "Beat-Bullet Visualization", true, true, false, false, false},
//{ RainbowPeaks, "Rainbow Peak Visualizer"}, // broken
{ RainbowBassRings, "Bass Ring Visualizer", true, true, false, false, false},
{ RainbowKickRings, "Kick Ring Visualizer", true, true, false, false, false},
//{ TrailingBulletsVisualizer, "Trailing Bullet Visualization"}, // obsolete
//{ BrightnessVisualizer, "Brightness Visualizer"}, // broken
{ RainbowBandVisualizer, "Rainbow Band Visualizer", true, true, false, false, false},
{ SingleColorBandVisualizer, "Single Color Band Visualizer", true, true, true, false, false},
#endif
#if LED_DEVICE_TYPE == 4 // palet speed color spark twinkle
{ NanoleafWaves, "Nanoleaf Wave Visualizer", true, true, false, false, false},
{ NanoleafBand, "Nanoleaf Rainbow Band Visualizer", true, true, false, false, false},
{ NanoleafSingleBand, "Nanoleaf Solid Color Band Visualizer", true, true, true, false, false},
#endif
#endif // ENABLE_UDP_VISUALIZATION
#ifdef ENABLE_SERIAL_AMBILIGHT // palet speed color spark twinkle
{ ambilight, "⋆Serial Ambilight", true, true, false, false, false},
#endif // ENABLE_SERIAL_AMBILIGHT
#ifdef SOUND_SENSOR_SUPPORT
{ soundReactive, "Sound Reactive", true, true, false, false, false},
#endif
{ showSolidColor, "Solid Color", false, false, true, false, false}
};

These are the pattern names in quotes:

This could look like this for example:

 if (d->getValue() != 0)setPattern("Horizontal Rainbow");

Can you try that please?

image
everything is ok in development branch
thank you

and it is my old sketch file
there is some problem on it,just for you to reference.

esp8266-fastled-iot-webserver.zip

Check on the newest version please

Since the "in-development" branch is 15 month old by now I just wanted to check back if we should still use it when getting the MQTT error.

I just noticed instead of asking I could just try it myself. Indeed I get the exact same error message when using the development branch.
Disableing Alexa did not change the error message. If you need any more code/screenshots please let me know.

Arduino: 1.8.19 (Windows 10), Board: "LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"image

This doesn't seem like a MQTT error but a debug error, try turning off the debug functions.

It was completely my fault I'm sorry. I went to the in-development branch and hit the download button on the right not realizing that it would download the main repository this way.

Now with the correct files everything seems to work fine.