mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-13 00:46:38 +02:00
* started to implement POST api
* improved web serial console * added multi inverter total values (published through MQTT) * fixed: after boot there were transferred wrong data because of incorrect assignment (mqtt, visualization) -> not tested with sun
This commit is contained in:
parent
9e1b6be70e
commit
6bd7e01f1a
13 changed files with 404 additions and 379 deletions
|
@ -19,6 +19,8 @@ class webApi {
|
|||
|
||||
private:
|
||||
void onApi(AsyncWebServerRequest *request);
|
||||
void onApiPost(AsyncWebServerRequest *request);
|
||||
void onApiPostBody(AsyncWebServerRequest *request, uint8_t *data, size_t len, size_t index, size_t total);
|
||||
void getNotFound(JsonObject obj, String url);
|
||||
|
||||
void getSystem(JsonObject obj);
|
||||
|
@ -34,6 +36,10 @@ class webApi {
|
|||
void getSetup(JsonObject obj);
|
||||
void getLive(JsonObject obj);
|
||||
|
||||
bool setCtrl(DynamicJsonDocument jsonIn, JsonObject jsonOut);
|
||||
|
||||
Inverter<> *getInverter(DynamicJsonDocument jsonIn, JsonObject jsonOut);
|
||||
|
||||
AsyncWebServer *mSrv;
|
||||
app *mApp;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue