bugfix
This commit is contained in:
@@ -110,10 +110,7 @@ void loop() {
|
|||||||
client.println();
|
client.println();
|
||||||
|
|
||||||
// turns the GPIOs on and off
|
// turns the GPIOs on and off
|
||||||
if (header.indexOf("GET /") >= 0) {
|
if (header.indexOf("GET /bell/on") >= 0) {
|
||||||
client.println("{ \"status\": \"true\" }");
|
|
||||||
}
|
|
||||||
else if (header.indexOf("GET /bell/on") >= 0) {
|
|
||||||
dfPlayer.play(1); //Play the first mp3
|
dfPlayer.play(1); //Play the first mp3
|
||||||
}
|
}
|
||||||
else if (header.indexOf("GET /volume/") >= 0) { // yes, I know this is not RESTful
|
else if (header.indexOf("GET /volume/") >= 0) { // yes, I know this is not RESTful
|
||||||
|
|||||||
Reference in New Issue
Block a user