Dealing with int values using wifi of esp32

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/

Apparently GET requests can only accept ASCII data:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.