work on command definitions
This commit is contained in:
@@ -237,7 +237,8 @@ void setup()
|
|||||||
if (request->hasParam("control", true)) {
|
if (request->hasParam("control", true)) {
|
||||||
message = request->getParam("control", true)->value();
|
message = request->getParam("control", true)->value();
|
||||||
//Serial.print(message);
|
//Serial.print(message);
|
||||||
if (message == "POWER")
|
sendButton(message);
|
||||||
|
/* if (message == "POWER")
|
||||||
sendButton(POWER);
|
sendButton(POWER);
|
||||||
if (message == "PLAY")
|
if (message == "PLAY")
|
||||||
sendButton(PLAY);
|
sendButton(PLAY);
|
||||||
@@ -247,9 +248,8 @@ void setup()
|
|||||||
sendButton(STOP);
|
sendButton(STOP);
|
||||||
if (message == "PREV")
|
if (message == "PREV")
|
||||||
sendButton(PREV);
|
sendButton(PREV);
|
||||||
|
|
||||||
if (message == "NEXT")
|
if (message == "NEXT")
|
||||||
sendButton(NEXT);
|
sendButton(NEXT); */
|
||||||
} else {
|
} else {
|
||||||
message = "No message sent";
|
message = "No message sent";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@
|
|||||||
#define LED_PIN 13
|
#define LED_PIN 13
|
||||||
|
|
||||||
// IR commands (Sony 12bit)
|
// IR commands (Sony 12bit)
|
||||||
#define POWER 0x15
|
|
||||||
|
int POWER = 0x15; //Das ist noch ein Fehler. Eigentlich brauche ich eine Möglichkeit key/value Paare auszulesen.
|
||||||
|
|
||||||
|
//#define POWER 0x15
|
||||||
#define PLAY 0x2A
|
#define PLAY 0x2A
|
||||||
#define PAUSE 0x29
|
#define PAUSE 0x29
|
||||||
#define STOP 0x28
|
#define STOP 0x28
|
||||||
|
|||||||
Reference in New Issue
Block a user