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
|
|
@ -12,16 +12,18 @@ class Port {
|
|||
private:
|
||||
std::shared_ptr<class modbus> modbus;
|
||||
|
||||
uint16_t portStartAddress;
|
||||
|
||||
void populateParameters();
|
||||
|
||||
void fixCurrent();
|
||||
bool currentFixed;
|
||||
|
||||
void increaseParametersAge();
|
||||
|
||||
public:
|
||||
Port(std::shared_ptr<class modbus> modbus, uint16_t portStartAddress);
|
||||
|
||||
uint16_t portStartAddress;
|
||||
|
||||
std::vector<std::shared_ptr<PortParameter>> parameters;
|
||||
|
||||
std::pair<std::shared_ptr<PortParameter>, bool> getParameterByName(std::string name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue