Skip to content

Commit feae4a7

Browse files
committed
fixed listening for events
1 parent 5dc263c commit feae4a7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/gate-controller.ino

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,10 @@ void loop()
103103
}
104104

105105
int triggerRelayDos(const char *event, const char *data){
106-
Serial.println(data);
107-
triggerRelay(data);
106+
char pub[40] = "1";
107+
strcat(pub, data);
108+
Serial.println(pub);
109+
triggerRelay(pub);
108110
}
109111

110112
int triggerRelay(String command){

0 commit comments

Comments
 (0)