For the complete documentation index, see llms.txt. This page is also available as Markdown.

Example 6 - Full Transactional Data Flow (OPC UA)

Expose an OPC UA method that triggers an HTTP request through FlowSync and returns the result as the method call output.

This example demonstrates a flow starting with an OPC UA method call, performing an HTTP request and giving back the HTTP request result as method call result via OPC UA.

The configuration connects dns.google on the north side with a custom OPC UA method on the south side. The OPC UA server provides a method getIpForDomain that accepts a domain name (e.g., cybus.io) as input and returns the corresponding IP address as output.

You can access the OPC UA server via opc.tcp://127.0.0.1:4841/UA/CybusOpcuaServer.

  • If the domain is successfully resolved, the method returns the IP address.

  • If no DNS record is found, it returns a BadNotFound error.

For more information on the FlowSync configuration properties, see Cybus:Node.

Last updated

Was this helpful?