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
|
|
@ -10,17 +10,15 @@
|
|||
|
||||
class Port {
|
||||
private:
|
||||
std::shared_ptr<class modbus> modbus;
|
||||
|
||||
void populateParameters();
|
||||
|
||||
void fixCurrent();
|
||||
bool currentFixed;
|
||||
|
||||
void increaseParametersAge();
|
||||
// void increaseParametersAge();
|
||||
|
||||
public:
|
||||
Port(std::shared_ptr<class modbus> modbus, int portStartAddress);
|
||||
Port(int portStartAddress);
|
||||
|
||||
int portStartAddress;
|
||||
|
||||
|
|
@ -28,7 +26,9 @@ class Port {
|
|||
|
||||
std::pair<std::shared_ptr<PortParameter>, bool> getParameterByName(std::string name);
|
||||
|
||||
void updateParameters(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
// void updateParameters(std::vector<std::string> ¶metersToGet, bool allParameters);
|
||||
|
||||
void setParametersFromMicroinverterArray(uint8_t *registers, int addressOffset);
|
||||
|
||||
void printParameters(std::vector<std::string> ¶metersToGet, bool allParameters, bool shortNames);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue