Send inverter max channel power via web api

This commit is contained in:
Thomas Basler 2022-06-22 21:44:55 +02:00
parent 9913ab7ddf
commit eec4334fa5

View File

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