Moved a bunch of stuff, starting to read registers

This commit is contained in:
TraYali 2024-03-13 00:18:10 +01:00
parent 65b4644fe4
commit 974ae853b9
17 changed files with 47 additions and 55 deletions

View file

@ -1,8 +1,16 @@
#include <iostream>
#include <string>
#include "hoymiles.h"
#include "modbus.h"
int main(){
std::cout << "Hello world";
std::string ip_address {"192.168.31.136"};
int port {502};
Dtu dtu {ip_address.c_str(), port};
dtu.readTest();
return 0;
}