Rewritten the backend, made it hella faster

This commit is contained in:
TraYali 2024-03-28 19:44:54 +01:00
parent 4209d2767e
commit d7b59ea326
11 changed files with 176 additions and 144 deletions

View file

@ -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> &parametersToGet, bool allParameters);
// void updateParameters(std::vector<std::string> &parametersToGet, bool allParameters);
void setParametersFromMicroinverterArray(uint8_t *registers, int addressOffset);
void printParameters(std::vector<std::string> &parametersToGet, bool allParameters, bool shortNames);
};