updated REST API and MQTT to use the same functionality

added heap as MQTT publish
updated User_Manual.md to latest changes
development build will have now always the same name because of static link from https://ahoydtu.de
This commit is contained in:
lumapu 2022-11-23 23:57:15 +01:00
parent 573bd31f0a
commit b1946df32f
13 changed files with 272 additions and 350 deletions

View file

@ -25,6 +25,8 @@ class webApi {
return mTimezoneOffset;
}
void ctrlRequest(JsonObject obj);
private:
void onApi(AsyncWebServerRequest *request);
void onApiPost(AsyncWebServerRequest *request);
@ -57,8 +59,6 @@ class webApi {
bool setCtrl(JsonObject jsonIn, JsonObject jsonOut);
bool setSetup(JsonObject jsonIn, JsonObject jsonOut);
Inverter<> *getInverter(JsonObject jsonIn, JsonObject jsonOut);
double round3(double value) {
return (int)(value * 1000 + 0.5) / 1000.0;
}