Digitalisierte Elektroverteilung zur permanenten Verbraucherüberwachung
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ModbusRtu.h 527B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include <modbuspp.h>
  3. #include "ModbusInterface.h"
  4. class ModbusRTU :
  5. public ModbusInterface
  6. {
  7. private:
  8. unsigned int baud;
  9. char pairity;
  10. unsigned int stopBit;
  11. //Create settings string
  12. std::string getSettingsString() const;
  13. public:
  14. ModbusRTU(const u_int id, const std::string _device, const u_int _baud, const char _pairity, const u_int _stopBit);
  15. virtual ~ModbusRTU();
  16. virtual void modbus_init() override;
  17. std::string getConnectionType()override { return "Rtu"; }
  18. };