Trying to make inheritance work, not worky :c

This commit is contained in:
TraYali 2024-03-15 11:46:44 +01:00
parent 39194f9e67
commit 216ceca3e1
3 changed files with 148 additions and 71 deletions

View file

@ -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;
}