feat: export panel settings (name, max power, offset) as prometheus metrics

This commit is contained in:
Markus Dobel
2023-03-08 09:11:25 +01:00
parent b42fff8d5f
commit 9eff5f228b
2 changed files with 50 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ private:
void addField(AsyncResponseStream* stream, String& serial, uint8_t idx, std::shared_ptr<InverterAbstract> inv, ChannelType_t type, ChannelNum_t channel, FieldId_t fieldId, const char* channelName = NULL);
void addPanelInfo(AsyncResponseStream* stream, String& serial, uint8_t idx, std::shared_ptr<InverterAbstract> inv, ChannelType_t type, ChannelNum_t channel);
AsyncWebServer* _server;
enum {