vintlabs / fauxmoESP

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

Error while compling Examples #168

Open ankit2101 opened 3 years ago

ankit2101 commented 3 years ago

I am getting the following error when trying to compile the examples

/Users/ankit/Documents/Arduino/fauxmoESP_Basic/fauxmoESP_Basic.ino: In function 'void setup()': fauxmoESP_Basic:133:6: error: no matching function for call to 'fauxmoESP::onSetState(setup()::__lambda0)' }); ^ /Users/ankit/Documents/Arduino/fauxmoESP_Basic/fauxmoESP_Basic.ino:133:6: note: candidate is: In file included from /Users/ankit/Documents/Arduino/fauxmoESP_Basic/fauxmoESP_Basic.ino:7:0: /Users/ankit/Documents/Arduino/libraries/FauxmoESP/src/fauxmoESP.h:98:14: note: void fauxmoESP::onSetState(TSetStateCallback) void onSetState(TSetStateCallback fn) { _setCallback = fn; } ^ /Users/ankit/Documents/Arduino/libraries/FauxmoESP/src/fauxmoESP.h:98:14: note: no known conversion for argument 1 from 'setup()::lambda0' to 'TSetStateCallback {aka std::function<void(unsigned char, const char*, bool, unsigned char)>}' exit status 1 no matching function for call to 'fauxmoESP::onSetState(setup()::lambda0)'

pvint commented 3 years ago

This should be fine now. This was a result of changes for RGB Colour in Master branch which have been reverted. (I wasn't really happy with the way I implemented it and will revisit that soon)