It's asking but need to tweek setting values from registers
This commit is contained in:
parent
d0f8e5b885
commit
f3f1aa3903
8 changed files with 309 additions and 109 deletions
12
src/main.cpp
12
src/main.cpp
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue