Get data from HTTP_POST
Posted: Thu Aug 30, 2018 12:36 am
Hello,
I'm writing a server application using the AsyncTCP.h and ESPAsyncWebServer.h librarires.
I'm able to receive POST requests and execute a function.
How do I handle receiving data from the client?
For example:
I'm writing a server application using the AsyncTCP.h and ESPAsyncWebServer.h librarires.
I'm able to receive POST requests and execute a function.
Code: Select all
server.on("/LED", HTTP_POST, [](AsyncWebServerRequest *request){
request->send(200, "text/plain", "Post route");
handleLED();
});
For example:
Code: Select all
192.168.1.6/LED?key=val&key2=val2