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