In this code used to send the data of reading sensor as string :
String readTemp() {
return String(bme.readTemperature());
//return String(1.8 * bme.readTemperature() + 32);
}
server.on("/temperature", HTTP_GET, [](AsyncWebServerRequest *request){
request->send_P(200, "text/plain", readTemp().c_str());
});
Is there any way to send int values using wifi?
https://randomnerdtutorials.com/esp32-client-server-wi-fi/
gfvalvo
2
Apparently GET requests can only accept ASCII data:
system
Closed
3
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.