Managed to implement some stuff, need to rewrite reading from DTU
This commit is contained in:
parent
f3f1aa3903
commit
9c3ed916b5
10 changed files with 90 additions and 27 deletions
|
|
@ -2,6 +2,8 @@
|
|||
#define DTU_H
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
#include "microinverter.h"
|
||||
|
||||
|
|
@ -10,7 +12,8 @@ typedef _modbus modbus_t;
|
|||
|
||||
class Dtu {
|
||||
private:
|
||||
modbus_t *modbus_context;
|
||||
std::shared_ptr<modbus_t*> modbus_context;
|
||||
std::mutex modbus_context_mutex;
|
||||
|
||||
std::vector<Microinverter> microinverters;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue