hoymilesClient/src/main.cpp

21 lines
316 B
C++
Raw Normal View History

2024-03-12 23:26:23 +01:00
#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include "hoymiles.h"
#include "modbus.h"
2024-03-12 23:26:23 +01:00
int main(){
std::string ip_address {"192.168.31.136"};
int port {502};
Dtu dtu {ip_address.c_str(), port};
2024-03-13 19:51:10 +01:00
while(true) {
dtu.updateMicroinverters();
}
2024-03-12 23:26:23 +01:00
return 0;
}