#ifndef _ECMP_HTML_H #define _ECMP_HTML_H #include "../datalayer/datalayer.h" #include "../datalayer/datalayer_extended.h" #include "src/devboard/webserver/BatteryHtmlRenderer.h" class EcmpHtmlRenderer : public BatteryHtmlRenderer { public: String get_status_html() { String content; content += "

Main Connector State: "; if (datalayer_extended.stellantisECMP.MainConnectorState == 0) { content += "Contactors open

"; } else if (datalayer_extended.stellantisECMP.MainConnectorState == 0x01) { content += "Precharged"; } else { content += "Invalid"; } content += "

Insulation Resistance: " + String(datalayer_extended.stellantisECMP.InsulationResistance) + "kOhm

"; return content; } }; #endif