Release for implementing microinverter totals and actually managing the age of parameters
This commit is contained in:
parent
8c29930594
commit
5e34b7fe37
6 changed files with 57 additions and 25 deletions
|
|
@ -1,9 +1,9 @@
|
|||
#ifndef DTU_H
|
||||
#define DTU_H
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "microinverter.h"
|
||||
#include "modbus.h"
|
||||
|
|
@ -18,7 +18,7 @@ class Dtu {
|
|||
|
||||
void populateMicroinverters();
|
||||
|
||||
std::pair<bool, Microinverter*> getMicroinverterBySerialNumber(long long serialNumber);
|
||||
std::pair<Microinverter *, bool> getMicroinverterBySerialNumber(long long serialNumber);
|
||||
|
||||
public:
|
||||
Dtu(const char *ip_address, int port);
|
||||
|
|
@ -31,7 +31,7 @@ class Dtu {
|
|||
|
||||
// void printMicroinverters();
|
||||
|
||||
void printMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet, bool shortNames);
|
||||
void printMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet, bool shortNames, bool printTodayProduction, bool printTotalProduction);
|
||||
|
||||
~Dtu();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue