Props.cpp corrections
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user