* adding data age to battery data * Add battery enabled flag * Webapi and websocket api for Battery * Webinterface for battery * fixed bug due to naming inconsistencies * cleaned up rounding * dist update * change typename to uppercase * reverting to original file
17 lines
356 B
C++
17 lines
356 B
C++
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
#pragma once
|
|
|
|
#include <ESPAsyncWebServer.h>
|
|
#include <AsyncJson.h>
|
|
|
|
class WebApiPylontechClass {
|
|
public:
|
|
void init(AsyncWebServer* server);
|
|
void loop();
|
|
void getJsonData(JsonObject& root);
|
|
|
|
private:
|
|
void onStatus(AsyncWebServerRequest* request);
|
|
|
|
AsyncWebServer* _server;
|
|
}; |