1234567891011121314151617181920 |
- #pragma once
- #include <modbuspp.h>
- #include "ModbusInterface.h"
-
- class ModbusTCP :
- public ModbusInterface
- {
- private:
-
- std::string port = "502";
-
- public:
- ModbusTCP(const u_int id, const std::string _ip, const u_int _port);
- virtual ~ModbusTCP();
- virtual void modbus_init() override;
-
- std::string getConnectionType()override { return "Tcp"; }
-
- };
|