mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2026-03-25 18:36:50 +01:00
Send inverter max channel power via web api
This commit is contained in:
@@ -48,6 +48,10 @@ void WebApiInverterClass::onInverterList(AsyncWebServerRequest* request)
|
||||
} else {
|
||||
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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user