remove distinct temperature- and humidity-page (not used, anyway)

This commit is contained in:
Ronald Schaten 2016-03-21 09:56:37 +01:00
parent 8fcc840a20
commit badd6deaad

View File

@ -381,20 +381,6 @@ void setup() {
delay(100); delay(100);
}); });
http_server.on("/temp", [](){
read_sensor();
char response[50];
snprintf(response, 50, "Temperature: %s °C", str_temperature);
http_server.send(200, "text/plain", response);
});
http_server.on("/humidity", [](){
read_sensor();
char response[50];
snprintf(response, 50, "Humidity: %s %", str_humidity);
http_server.send(200, "text/plain", response);
});
// start the web server // start the web server
http_server.begin(); http_server.begin();
Serial.println("HTTP server started"); Serial.println("HTTP server started");