hoymilesClient/inc/hoymiles/microinverter.h

31 lines
No EOL
608 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> &parametersToGet, bool allParameters);
void printPorts(std::vector<std::string> &parametersToGet, bool allParameters);
long long getTodayProduction();
long long getTotalProduction();
};
#endif