fauxmoESP library returns boolean in onMessage callback

This commit is contained in:
Xose Pérez
2016-11-21 01:11:25 +01:00
parent 6770194287
commit b07bc1d97b

View File

@@ -24,9 +24,9 @@ void fauxmoConfigure() {
void fauxmoSetup() {
fauxmoConfigure();
fauxmo.onMessage([](const char * state) {
DEBUG_MSG("[FAUXMO] State: %s\n", state);
relayStatus(0, state[0] == '1');
fauxmo.onMessage([](bool state) {
DEBUG_MSG("[FAUXMO] State: %s\n", state ? "ON" : "OFF");
relayStatus(0, state);
});
}