Made basic output of values, slow but starting to be actually functional
This commit is contained in:
parent
6cfdcc13ce
commit
30a39aff3e
9 changed files with 56 additions and 9 deletions
|
|
@ -1,4 +1,6 @@
|
|||
#include <thread>
|
||||
#include <iostream>
|
||||
#include <memory>
|
||||
|
||||
#include "modbus.h"
|
||||
|
||||
|
|
@ -26,4 +28,15 @@ void Microinverter::updatePorts() {
|
|||
updateThreadsIterator->join();
|
||||
updateThreadsIterator++;
|
||||
}
|
||||
}
|
||||
|
||||
void Microinverter::printPorts() {
|
||||
std::cout << "Microinverter: " << this->serialNumber << std::endl;
|
||||
|
||||
std::vector<Port>::iterator portsIterator = this->ports.begin();
|
||||
while(portsIterator != this->ports.end()) {
|
||||
portsIterator->printParameters();
|
||||
std::cout << std::endl;
|
||||
portsIterator++;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue