Moved a bunch of stuff, starting to read registers
This commit is contained in:
parent
65b4644fe4
commit
974ae853b9
17 changed files with 47 additions and 55 deletions
10
src/main.cpp
10
src/main.cpp
|
|
@ -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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue