esp8266-fastled-iot-webserver icon indicating copy to clipboard operation
esp8266-fastled-iot-webserver copied to clipboard

Some problem for MQTT and ALEXA support...

Open ghost opened this issue 4 years ago • 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.

ghost avatar May 12 '21 13:05 ghost

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: https://github.com/NimmLor/esp8266-fastled-iot-webserver/blob/386efc6d168b074213e9cb01b7ebdb9e09de6f0f/esp8266-fastled-iot-webserver.ino#L551-L669

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?

bb-Ricardo avatar May 14 '21 06:05 bb-Ricardo

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

ghost avatar May 14 '21 11:05 ghost

Check on the newest version please

WarDrake avatar Mar 25 '22 22:03 WarDrake

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

Boerny41 avatar May 05 '22 12:05 Boerny41

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

WarDrake avatar May 05 '22 16:05 WarDrake

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.

Boerny41 avatar May 05 '22 16:05 Boerny41