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;
if(request->hasParam("temp")) {
repply = temperature;
repply = String(temperature);
}else if(request->hasParam("relay")){
repply = !digitalRead(RELAY_PIN);
repply = String(heating);
}else if(THERMOSTAT && request->hasParam("reqtemp")){
repply = reqTemp;
repply = String(reqTemp);
}else if(THERMOSTAT && request->hasParam("offset")) {
repply = offset;
repply = String(offset);
}else{
repply = "unknown parameter";
}