mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-13 18:30:43 +01:00
15 lines
341 B
C
15 lines
341 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "ArduinoJson.h"
|
||
|
|
#include <ESPAsyncWebServer.h>
|
||
|
|
#include <Hoymiles.h>
|
||
|
|
|
||
|
|
class WebApiWsLiveClass {
|
||
|
|
public:
|
||
|
|
void init(AsyncWebSocket* ws);
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
private:
|
||
|
|
AsyncWebSocket* _ws;
|
||
|
|
void addField(JsonDocument& root, uint8_t idx, std::shared_ptr<InverterAbstract> inv, uint8_t channel, uint8_t fieldId);
|
||
|
|
};
|