* optimize API authentication, Error-Codes #1415
* breaking change: authentication API command changed #1415
* breaking change: limit has to be send als `float`, `0.0 .. 100.0` #1415
* updated documentation #1415
* fix don't send control command twice #1426
This commit is contained in:
lumapu 2024-02-12 22:32:13 +01:00
parent 315541ea51
commit 31232bfd80
10 changed files with 116 additions and 70 deletions

View file

@ -163,9 +163,10 @@ class Inverter {
void tickSend(std::function<void(uint8_t cmd, bool isDevControl)> cb) {
if(mDevControlRequest) {
if(InverterStatus::OFF != status)
if(InverterStatus::OFF != status) {
cb(devControlCmd, true);
else
devControlCmd = InitDataState;
} else
DPRINTLN(DBG_WARN, F("Inverter is not avail"));
mDevControlRequest = false;
} else if (IV_MI != ivGen) { // HM / HMS / HMT