Quick rewrite
This commit is contained in:
parent
266dcefdfd
commit
e6928a3aa6
27 changed files with 6041 additions and 773 deletions
|
|
@ -10,23 +10,21 @@
|
|||
|
||||
class Dtu {
|
||||
private:
|
||||
std::shared_ptr<class modbus> modbus;
|
||||
modbus_t *modbus;
|
||||
|
||||
std::vector<Microinverter> microinverters;
|
||||
|
||||
bool connected;
|
||||
|
||||
void populateMicroinverters();
|
||||
|
||||
public:
|
||||
Dtu(const char *ip_address, int port);
|
||||
Dtu(const char *address, int id, bool rtu, bool tcp);
|
||||
|
||||
std::pair<Microinverter *, bool> getMicroinverterBySerialNumber(long long serialNumber);
|
||||
|
||||
bool isConnected();
|
||||
|
||||
bool modbusError();
|
||||
|
||||
std::string modbusErrorMessage();
|
||||
|
||||
void updateMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet);
|
||||
|
||||
void printMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet, bool shortNames, bool printTodayProduction, bool printTotalProduction);
|
||||
|
|
@ -35,6 +33,8 @@ class Dtu {
|
|||
|
||||
bool empty();
|
||||
|
||||
void listOfMicroinverters();
|
||||
|
||||
~Dtu();
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue