Oprava get requestu

převedení požadované hodnoty na String
master
David Zálešák 2 years ago
parent e8f284b291
commit 9f92104be4

@ -127,13 +127,13 @@ void setup() {
String repply; String repply;
if(request->hasParam("temp")) { if(request->hasParam("temp")) {
repply = temperature; repply = String(temperature);
}else if(request->hasParam("relay")){ }else if(request->hasParam("relay")){
repply = !digitalRead(RELAY_PIN); repply = String(heating);
}else if(THERMOSTAT && request->hasParam("reqtemp")){ }else if(THERMOSTAT && request->hasParam("reqtemp")){
repply = reqTemp; repply = String(reqTemp);
}else if(THERMOSTAT && request->hasParam("offset")) { }else if(THERMOSTAT && request->hasParam("offset")) {
repply = offset; repply = String(offset);
}else{ }else{
repply = "unknown parameter"; repply = "unknown parameter";
} }