25#ifdef PYLONTECH_SENSOR_CELL_COUNT
Minimal static vector - saves memory by avoiding std::vector overhead.
virtual void on_line_read(LineContents *line)=0
Called only with records for this listener's battery.
std::array< CellContents, MAX_CELLS > CellArray
void dump_config() override
void on_cells_read(const CellArray &cells, cell_mask_t read) override
SUB_SENSOR(voltage) SUB_SENSOR(current) SUB_SENSOR(temperature) SUB_SENSOR(temperature_low) SUB_SENSOR(temperature_high) SUB_SENSOR(voltage_low) SUB_SENSOR(voltage_high) SUB_SENSOR(coulomb) SUB_SENSOR(mos_temperature) void on_line_read(LineContents *line) override
PylontechSensor(uint8_t bat_num)
StaticVector< CellSensors, PYLONTECH_SENSOR_CELL_COUNT > cells_
void add_cell(uint8_t cell, sensor::Sensor *voltage, sensor::Sensor *temperature)
Base-class for all sensors.
sensor::Sensor * temperature