Cybus::Connection
Establishing connectivity to external systems and devices.
The Cybus::Connection resource enables connectivity to external systems or devices using various protocols. The following describes its properties, supported protocols, and configuration examples.
Connection Properties
protocol
Specifies the protocol to be used for establishing the connection.
Required
Type:
enum
The value of this property must be one of the following:
AdsBacnetEthernetIpFocasHbmdaqHeidenhainHttpInfluxdbKafkaModbusMqttMssqlOpcdaOpcuaS7ShdrSinumerikSopasSqlSystemstateWerma
targetState
Defines the desired state of the resource after startup.
Optional
Type:
enumAllowed values:
connecteddisconnected
Default:
connected
agentName
Specifies the agent name if the protocol-mapper operates in distributed mode. For example, on a separate agent instance from Connectware. Use this property to identify the corresponding agent.
Optional
Type:
stringDefault:
protocol-mapper
connection
Defines the connection details required for the specified protocol.
Required
Type:
object
Each protocol has its own set of connection properties:
BacnetConnection PropertiesEthernetIpConnection PropertiesFocasConnection PropertiesHbmdaqConnection PropertiesHeidenhainConnection PropertiesInfluxdbConnection PropertiesKafkaConnection PropertiesModbusConnection PropertiesMssqlConnection PropertiesOpcdaConnection PropertiesOpcuaConnection PropertiesSinumerikConnection PropertiesSopasConnection PropertiesSystemstateConnection PropertiesWermaConnection Properties
Most protocols include a connectionStrategy property to configure incremental delays between reconnection attempts. This typically includes:
initialDelay: Time in milliseconds before the first reconnection attempt.incrementFactor: Multiplier applied to the delay after each attempt.maxDelay: Maximum delay in milliseconds for subsequent attempts.
Once the connection is re-established, the initialDelay resets to its original value. Note that MQTT, OPC UA, S7, and Sinumerik protocols use their own reconnection strategies, detailed in their respective documentation.
Examples
MQTT
mqttConnection:
type: Cybus::Connection
properties:
protocol: Mqtt
connection:
host: brokerOPC UA
opcuaConnection:
type: Cybus::Connection
properties:
protocol: Opcua
connection:
host: 127.17.0.1
port: 50000
username: user
password: userModbus
modbusConnection:
type: Cybus::Connection
properties:
agentName: edge-mapper # uses the protocol-mapper agent 'edge-mapper'
protocol: Modbus
connection:
host: 172.17.0.1
port: 10502Last updated
Was this helpful?

