Browse Source

fauxmoESP library returns boolean in onMessage callback

fastled
Xose Pérez 8 years ago
parent
commit
b07bc1d97b
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      code/src/fauxmo.ino

+ 3
- 3
code/src/fauxmo.ino 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);
});
}


Loading…
Cancel
Save