vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
383 stars 69 forks source link

Error compiling when use #define DEBUG_FAUXMO Serial #69

Closed pvint closed 5 years ago

pvint commented 5 years ago

Original report by Jaume Nogues Gazquez (Bitbucket: [Jaume Nogues](https://bitbucket.org/Jaume Nogues), ).


Hi all. I'm compiling for a nodeMCU 1.0 with arduino IDE 1.8.8, 2.4.3 plugin, last 'dev' branch.

My alexa don't discover my device. Ii I uncomment in fauxmoESP.h the next line

#define DEBUG_FAUXMO   Serial

I have this error:

#!arduino

/arduino-1.8.8/portable/sketchbook/libraries/xoseperez-fauxmoesp-950620648f8c/src/fauxmoESP.h:39:95: error: 'class HardwareSerial' has no member named 'printf_P'
     #define DEBUG_MSG_FAUXMO(fmt, ...) { static const char pfmt[] PROGMEM = fmt; DEBUG_FAUXMO.printf_P(pfmt, ## __VA_ARGS__); }

Thanks

pvint commented 5 years ago

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


2.4.3? This is unreleased and, AFAIK, it will be named 2.5.0, right? Anyway, printf_P is defined for 2.4.X but it was not defined for 2.3.0. Are you sure you are not using 2.3.0 instead?

pvint commented 5 years ago

Original comment by Jaume Nogues Gazquez (Bitbucket: [Jaume Nogues](https://bitbucket.org/Jaume Nogues), ).


Solved. Sorry, I have 2.3.0. I update to 2.4.2. Now I see the news logs via Serial. Thanks. Next step, try If my alexa discovers the device!

pvint commented 5 years ago

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


OK