Connect Your First Machine
Install a sample service that connects to a simulated OPC UA machine and watch live data arrive in Connectware.
See Connectware in action: you install a service from a sample service commissioning file, Connectware connects to a public OPC UA demo server that simulates a machine, and the incoming data appears in the Data Explorer. At the end, you have completed the full Connectware workflow once: from YAML configuration to live data on an MQTT topic.
You do not need any machine or hardware. The sample service connects to a publicly available OPC UA test server that publishes simulated data.
Prerequisites
A running Connectware installation. See Installing Connectware.
A user account that is allowed to install services. The default admin user is sufficient.
Outbound Internet access from Connectware to the demo server
opcua.demo-this.comon port51210.
Step 1 — Download the Sample Service Commissioning File
Download the sample service commissioning file:
The file defines the resources that make up the data pipeline:
A
Cybus::Connectionto the demo OPC UA server.A
Cybus::Endpointthat subscribes to a node publishing simulated values.A
Cybus::Mappingthat publishes those values to the MQTT topicexample/opcua/dataexample.
For a walkthrough of each section in a service commissioning file, see How Connectware Works.
Step 2 — Log in to the Admin UI
Open your browser and enter the address of your Connectware instance (https://<HOST-IP>).
Enter your username and password and click Sign in.
Step 3 — Install the Service
On the navigation panel, click Services.
Click Upload Service.
Click Choose File and select the
connect-your-first-machine.yamlfile.Click Install to confirm the parameters and start the installation. You can keep the default parameter values.
The service is now installed but not yet enabled.
Step 4 — Enable the Service
In the Service Overview list, click your service to open the Service Details view.
Click Enable.
In the Authorization Required dialog, click Allow to confirm the configuration changes.
Connectware now creates the connection, endpoint, and mapping, and data starts to flow.
Step 5 — Watch the Data Arrive
Data flows through Connectware as MQTT messages organized into topics. The Data Explorer lets you monitor them live.
On the navigation panel, click Data.
In the Available Topics tree, select the
example/opcua/dataexampletopic.
The Data Explorer shows the simulated values arriving from the demo server every few seconds.
Result
You installed, enabled, and verified a complete Connectware service. Every resource — the connection, the endpoint, and the mapping — was created from a single service commissioning file, and the machine data is available to any MQTT consumer through the Unified Namespace.
To remove the sample service, open its Service Details view, click Disable, and then delete the service. All resources are cleanly removed.
Next Steps
Connect a real device with the other Machine Connectivity guides or browse the connectors for your protocols.
Build your own service using the service commissioning file reference.
Route and transform your data with the Rule Engine.
Last updated
Was this helpful?

