From 77be8a337c92fe7d2c7867059951b7deb6d64a19 Mon Sep 17 00:00:00 2001 From: fauresystems <34378695+fauresystems@users.noreply.github.com> Date: Sun, 5 Apr 2020 08:55:56 +0200 Subject: [PATCH] Props.cpp corrections --- README.md | 6 +++--- src/Props.cpp | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ab13a3f..bce03fa 100644 --- a/README.md +++ b/README.md @@ -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 ``` diff --git a/src/Props.cpp b/src/Props.cpp index cdd0b82..c655736 100644 --- a/src/Props.cpp +++ b/src/Props.cpp @@ -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)