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.

PublisherBenderRcm.cpp 899B

3 years ago
1234567891011121314151617181920
  1. #include "PublisherBenderRcm.h"
  2. #include "SystemConfig.h"
  3. PublisherBenderRcm::PublisherBenderRcm() : PublisherInterface(PublisherType::RCMS_BENDER)
  4. {
  5. connection = std::make_unique<ModbusRTU>(SystemConfig::getIntConfigParameter("modbus_rtu_slave_address"),
  6. SystemConfig::getStringConfigParameter("modbus_rtu_device"),
  7. SystemConfig::getIntConfigParameter("modbus_rtu_baud"),
  8. SystemConfig::getStringConfigParameter("modbus_rtu_pairity").at(0),
  9. SystemConfig::getIntConfigParameter("modbus_rtu_stop_bits"));
  10. modbusData = std::make_unique<ModbusDataBender>(this->id);
  11. }
  12. std::string PublisherBenderRcm::getName() const
  13. {
  14. std::stringstream name;
  15. name << "RCM - Bender (ID: " << id << ")";
  16. return name.str();
  17. }