Send inverter max channel power via web api
This commit is contained in:
parent
9913ab7ddf
commit
eec4334fa5
@ -48,6 +48,10 @@ void WebApiInverterClass::onInverterList(AsyncWebServerRequest* request)
|
|||||||
} else {
|
} else {
|
||||||
obj[F("type")] = inv->typeName();
|
obj[F("type")] = inv->typeName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (uint8_t c = 0; c < INV_MAX_CHAN_COUNT; c++) {
|
||||||
|
obj[F("max_power")][c] = config.Inverter[i].MaxChannelPower[c];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user