mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-13 22:47:15 +02:00
0.8.1
* added tx channel heuristics (per inverter) * fix statistics counter
This commit is contained in:
parent
92855a7f0c
commit
f1dfd328cc
13 changed files with 98 additions and 1725 deletions
|
@ -680,12 +680,10 @@ class RestApi {
|
|||
iv->powerLimit[1] = AbsolutNonPersistent;
|
||||
|
||||
accepted = iv->setDevControlRequest(ActivePowerContr);
|
||||
}
|
||||
else if(F("dev") == jsonIn[F("cmd")]) {
|
||||
} else if(F("dev") == jsonIn[F("cmd")]) {
|
||||
DPRINTLN(DBG_INFO, F("dev cmd"));
|
||||
//iv->enqueCommand<InfoCommand>(jsonIn[F("val")].as<int>());
|
||||
}
|
||||
else {
|
||||
iv->setDevCommand(jsonIn[F("val")].as<int>());
|
||||
} else {
|
||||
jsonOut[F("error")] = F("unknown cmd: '") + jsonIn["cmd"].as<String>() + "'";
|
||||
return false;
|
||||
}
|
||||
|
@ -693,8 +691,7 @@ class RestApi {
|
|||
if(!accepted) {
|
||||
jsonOut[F("error")] = F("inverter does not accept dev control request at this moment");
|
||||
return false;
|
||||
} else
|
||||
mApp->ivSendHighPrio(iv);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue