remove distinct temperature- and humidity-page (not used, anyway)
This commit is contained in:
parent
8fcc840a20
commit
badd6deaad
14
things.ino
14
things.ino
@ -381,20 +381,6 @@ void setup() {
|
||||
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
|
||||
http_server.begin();
|
||||
Serial.println("HTTP server started");
|
||||
|
Loading…
Reference in New Issue
Block a user