SMACC2
Loading...
Searching...
No Matches
cl_modbus_tcp_relay Namespace Reference

Classes

class  CbAllRelaysOff
 Client behavior to turn OFF all relay channels simultaneously. More...
 
class  CbAllRelaysOn
 Client behavior to turn ON all relay channels simultaneously. More...
 
class  CbRelayOff
 Client behavior to turn OFF a specific relay channel. More...
 
class  CbRelayOn
 Client behavior to turn ON a specific relay channel. More...
 
class  CbRelayStatus
 Client behavior to read relay channel status. More...
 
class  ClModbusTcpRelay
 SMACC2 Client for controlling Modbus TCP relays. More...
 
class  CpModbusConnection
 Component that manages Modbus TCP connection lifecycle and heartbeat monitoring. More...
 
class  CpModbusRelay
 Component that handles Modbus coil read/write operations for 8-channel relay. More...
 
struct  EvConnectionLost
 
struct  EvConnectionRestored
 
struct  EvRelayWriteFailure
 
struct  EvRelayWriteSuccess
 

Functions

template<>
void CpModbusConnection::declareAndLoadParam< std::string > (const std::string &name, std::string &value, const std::string &default_val)
 

Function Documentation

◆ CpModbusConnection::declareAndLoadParam< std::string >()

template<>
void cl_modbus_tcp_relay::CpModbusConnection::declareAndLoadParam< std::string > ( const std::string & name,
std::string & value,
const std::string & default_val )

Definition at line 62 of file cp_modbus_connection.cpp.

64{
65 auto node = getNode();
66 if (!node->has_parameter(name))
67 {
68 node->declare_parameter(name, default_val);
69 }
70 node->get_parameter(name, value);
71 RCLCPP_INFO(getLogger(), "[CpModbusConnection] %s: %s", name.c_str(), value.c_str());
72}