This commit is contained in:
2021-09-14 17:29:45 +02:00
parent b20d880ed1
commit f829886335
+1 -4
View File
@@ -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