mirror of
https://github.com/xoseperez/espurna.git
synced 2026-03-09 09:47:08 +01:00
fauxmoESP library returns boolean in onMessage callback
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user