Props.cpp corrections

This commit is contained in:
fauresystems
2020-04-05 08:55:56 +02:00
parent 80353a380f
commit 77be8a337c
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -107,9 +107,9 @@ To unifiy escape room 2.0 development, *ArduinoProps library* provides a simple
```csharp
DATA -> send variables to control
MESG -> send text to display in control
DONE -> acknowledge a command has been performed
OMIT -> acknowledge a command has been ignored
OVER -> notify a challenge is over
DONE -> acknowledge that a command has been performed
OMIT -> acknowledge that a command has been ignored
OVER -> notify that a challenge is over
REQU -> request a command to another props
PROG -> request a control program
```
+3 -3
View File
@@ -173,11 +173,11 @@ void Props::sendOmit(String action) {
}
void Props::sendOver(String challenge) {
_client.publish(outbox, String("OMIT " + challenge).c_str());
_client.publish(outbox, String("OVER " + challenge).c_str());
}
void Props::sendProg(String program) {
_client.publish(outbox, String("PROGRAM " + program).c_str());
_client.publish(outbox, String("PROG " + program).c_str());
}
void Props::sendRequ(String request) {
@@ -185,7 +185,7 @@ void Props::sendRequ(String request) {
}
void Props::sendRequ(String action, char* topic) {
_client.publish(topic, String("OMIT " + action).c_str());
_client.publish(topic, String("REQU " + action).c_str());
}
void Props::resetIntervals(const int changes, const int silent)