diff --git a/arduino-sony-minidisc-ir-remote.ino b/arduino-sony-minidisc-ir-remote.ino index c00854e..5ff21ca 100644 --- a/arduino-sony-minidisc-ir-remote.ino +++ b/arduino-sony-minidisc-ir-remote.ino @@ -487,11 +487,21 @@ void setup() // Send a POST request to /api/gettext with a form field message set to server.on("/api/gettracklist", HTTP_POST, [](AsyncWebServerRequest *request) { + String title; String message; + if (request->hasParam("albumtitle", true)) { + title = request->getParam("albumtitle", true)->value(); + Serial.print("album title: "); + Serial.println(title); + /* nameAllTracks(message); */ + } else { + title = "No message sent"; + } if (request->hasParam("tracklist", true)) { message = request->getParam("tracklist", true)->value(); - //Serial.println(message); - nameAllTracks(message); + Serial.print("tracklist: "); + Serial.println(message); + /* nameAllTracks(message); */ } else { message = "No message sent"; } @@ -522,18 +532,6 @@ void setup() } request->send(SD, "/index.html", "text/html"); }); - // Send a POST request to /api/keyboard-input with a form field message set to - server.on("/api/keyboard-input", HTTP_POST, [](AsyncWebServerRequest *request) - { - String message; - if (request->hasParam("key", true)) { - message = request->getParam("key", true)->value(); - sendCommand20(message); - } else { - message = "No message sent"; - } - request->send(SD, "/index.html", "text/html"); }); - server.onNotFound(notFound); server.begin(); diff --git a/sd-card/index.html b/sd-card/index.html index 787f700..1396e24 100644 --- a/sd-card/index.html +++ b/sd-card/index.html @@ -236,19 +236,16 @@ > next - -
+ Track List Editing
- + + +
@@ -265,22 +262,6 @@
- -
- 20 Bit Keyboard Input Test -
-
- - - - - - -
-
-