Connecting Data Sources
Available inEdgeCloudEnterprise
Tier0 supports connecting to various industrial protocols, including OPC UA, Modbus, MQTT and more.
Connecting Data Sources
Section titled “Connecting Data Sources”OPC UA
Section titled “OPC UA”- Security configuration is automatically obtained from the server once you enter the server address.
- Authentication is supported through username/password or certificate.
{ "name": "ua", "description": "", "protocol": "opcua", "endpoint": "opc.tcp://220.184.175.73:4841/demo/", "runtimeLocation": "local", "opcua": { "securityMode": "None", "securityPolicy": "None" }}Modbus
Section titled “Modbus”Only server address and unit ID are required.
{ "name": "modbus", "description": "", "protocol": "modbus-tcp", "endpoint": "tcp://220.184.175.73:1502", "runtimeLocation": "local", "modbus": { "unitId": 1 }}Tier0 can be used as an MQTT broker to receive data from devices, or as a client to connect to an external MQTT broker.
-
As a broker:
- Generates connection credentials including client ID, username and password when connecting MQTT Device.
- Third-party client must use the publish topic displayed on the connection panel to publish messages.
- Use the agent to build a stream, with the publish topic as input, to send data to the secified Namespace.
-
As a client: Connect third-party broker.
Terminal window {"name": "111","description": "","protocol": "mqtt","endpoint": "mqtt://220.184.175.73:1883","runtimeLocation": "local","mqtt": {"clientId": "tier0UxxxxxxxxuwQVfi"}}
Tier0 can be used as an HTTP server for third-party to access, or as a client to call API from other HTTP server.
-
As a server:
- Add an HTTP server in Tier0, and get the full address from the information panel.
- Use the agent to build a stream that defines data and subsequent routing, together forming an API.
- Third-party uses the address and the set routing to call the API and get the data.
-
As a client: Connect third-party HTTP servers.
{ "name": "222", "description": "", "protocol": "http-api", "endpoint": "http://220.184.175.73:8088/api/telemetry", "runtimeLocation": "local", "role": "client", "http": { "authentication": "none" }}SQL Server
Section titled “SQL Server”- Database address must include both port and database name.
- An initial query command is necessary.
- When the database is available for anonymous connection, authentication can be skipped.
{ "name": "eee", "description": "", "protocol": "edge-sql", "endpoint": "mysql://hzoffice.tier0.dev:3307/demo_factory", "runtimeLocation": "local", "sql": { "queries": { "query1": "SELECT * FROM telemetry ORDER BY id DESC LIMIT 5" }, "tlsMode": "verify-full" }, "credentialRef": "ref_9ce47b8778xxxxxxxx7dad49a86dbad"}Github
Section titled “Github”- Connect to Tier0 Github through OAuth.
- Discover resources in this organization on the source information panel.
- Ask the agent to build a stream to get needed data.
Getting Data from Sources
Section titled “Getting Data from Sources”- Ask the agent to build streams to get data from the connected sources.
- Necessary information, such as Modbus registers, database queries, UA namespace URIs, MQTT topics are required in the prompt.