31 lines
No EOL
625 B
C++
31 lines
No EOL
625 B
C++
#ifndef MICROINVERTER_H
|
|
#define MICROINVERTER_H
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "modbus.h"
|
|
#include "port.h"
|
|
|
|
class Microinverter {
|
|
private:
|
|
std::shared_ptr<class modbus> modbus;
|
|
|
|
public:
|
|
Microinverter(std::shared_ptr<class modbus> modbus, long long serialNumber);
|
|
|
|
long long serialNumber;
|
|
|
|
std::vector<Port> ports;
|
|
|
|
void updatePorts(std::vector<std::string> ¶metersToGet, bool allParameters);
|
|
|
|
void printPorts(std::vector<std::string> ¶metersToGet, bool allParameters, bool shortNames);
|
|
|
|
long long getTodayProduction();
|
|
|
|
long long getTotalProduction();
|
|
};
|
|
|
|
#endif |