Rewritten the backend, made it hella faster
This commit is contained in:
parent
4209d2767e
commit
d7b59ea326
11 changed files with 176 additions and 144 deletions
|
|
@ -12,14 +12,20 @@ class Microinverter {
|
|||
private:
|
||||
std::shared_ptr<class modbus> modbus;
|
||||
|
||||
int startAddress;
|
||||
|
||||
public:
|
||||
Microinverter(std::shared_ptr<class modbus> modbus, long long serialNumber);
|
||||
Microinverter(std::shared_ptr<class modbus> modbus, int startAddress, long long serialNumber);
|
||||
|
||||
long long serialNumber;
|
||||
|
||||
int age;
|
||||
|
||||
std::vector<Port> ports;
|
||||
|
||||
void updatePorts(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
// void updatePorts(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
|
||||
void updateParameters(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
|
||||
void printPorts(std::vector<std::string> ¶metersToGet, bool allParameters, bool shortNames);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue