Trying to make inheritance work, not worky :c
This commit is contained in:
parent
39194f9e67
commit
216ceca3e1
3 changed files with 148 additions and 71 deletions
12
src/main.cpp
12
src/main.cpp
|
|
@ -12,10 +12,14 @@ int main(){
|
|||
std::string ip_address {"192.168.31.136"};
|
||||
int port {502};
|
||||
|
||||
Dtu dtu {ip_address.c_str(), port};
|
||||
while(true) {
|
||||
dtu.updateMicroinverters();
|
||||
}
|
||||
// Dtu dtu {ip_address.c_str(), port};
|
||||
// while(true) {
|
||||
// dtu.updateMicroinverters();
|
||||
// }
|
||||
|
||||
Port hoymilesPort{modbus_new_tcp(ip_address.c_str(), port), 0x1000};
|
||||
|
||||
hoymilesPort.updateParameters();
|
||||
|
||||
return 0;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue