It's asking but need to tweek setting values from registers

This commit is contained in:
TraYali 2024-03-16 22:51:32 +01:00
parent d0f8e5b885
commit f3f1aa3903
8 changed files with 309 additions and 109 deletions

View file

@ -12,14 +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};
// Port hoymilesPort{modbus_new_tcp(ip_address.c_str(), port), 0x1000};
hoymilesPort.updateParameters();
// hoymilesPort.updateParameters();
return 0;
}