This commit is contained in:
Matthew Frost 2023-06-13 12:48:42 +02:00
parent 50cde43e7c
commit bc115ee1b3

View file

@ -337,7 +337,7 @@ void setup() {
});
server.onNotFound([](AsyncWebServerRequest *request){
request->send(404, "text/plain", "The content you are looking for was not found.");
request->send(200, "application/json", "{'msg':'The content you are looking for was not found'}");
});
// Send a GET request to <ESP_IP>/gpio?output=<inputMessage1>&state=<inputMessage2>