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)'
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)
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)'