NimmLor / esp8266-fastled-iot-webserver

A universal software for all my LED projects, with many awesome features
https://www.thingiverse.com/surrbradl08/designs
GNU General Public License v3.0
366 stars 94 forks source link

Some problem for MQTT and ALEXA support... #191

Open ghost opened 3 years ago

ghost commented 3 years ago

(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.

bb-Ricardo commented 3 years ago

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?

ghost commented 3 years ago

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

WarDrake commented 2 years ago

Check on the newest version please

Boerny41 commented 2 years ago

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

WarDrake commented 2 years ago

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

Boerny41 commented 2 years ago

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.