Oprava get requestu

převedení požadované hodnoty na String
This commit is contained in:
2022-12-14 03:16:16 +01:00
parent e8f284b291
commit 9f92104be4

View File

@@ -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";
}