Starting to move thte library
This commit is contained in:
parent
f6b42b2460
commit
381dcbdc57
14 changed files with 750 additions and 21 deletions
|
|
@ -6,19 +6,23 @@
|
|||
// #include <mutex>
|
||||
|
||||
#include "port.h"
|
||||
#include "modbus.h"
|
||||
|
||||
struct _modbus;
|
||||
typedef _modbus modbus_t;
|
||||
// struct _modbus;
|
||||
// typedef _modbus modbus_t;
|
||||
|
||||
class Microinverter {
|
||||
private:
|
||||
std::shared_ptr<modbus_t*> modbus_context;
|
||||
// std::shared_ptr<modbus_t*> modbus_context;
|
||||
|
||||
std::shared_ptr<modbus> modbus;
|
||||
|
||||
// std::mutex *modbus_context_mutex;
|
||||
|
||||
|
||||
|
||||
public:
|
||||
Microinverter(std::shared_ptr<modbus_t*> modbus_context, long serialNumber);
|
||||
Microinverter(class modbus modbus, long serialNumber);
|
||||
|
||||
long serialNumber;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue