IBH Link UA:MQTT Description: Difference between revisions
Created page with "'''MQTT Connection:''' Here, user-defined OPC UA variables can be exchanged with an MQTT broker/server via the MQTT publisher/subscriber functionality. MQTT supports security..." |
mNo edit summary |
||
| Line 1: | Line 1: | ||
= IBH Link UA: MQTT Function = | |||
Status: 2026-03-26 | |||
This page summarizes the MQTT functionality of the IBH OPC UA Server/Client. | |||
== Overview == | |||
Supports MQTT publish and subscribe | |||
Multiple parallel connections to different brokers | |||
Configuration via <code>ibhlinkua-mqtt.xml</code> | |||
Web interface for configuration management and diagnostics | |||
Supports JSON and Sparkplug B | |||
Includes TLS, certificates, buffering, and persistent storage | |||
== Web Interface == | |||
The | The <code>MQTT</code> section allows: | ||
Upload / download configuration | |||
Restart connections | |||
Delete configuration | |||
View diagnostics (broker, client ID, status) | |||
== Basic Concept == | |||
<code>Publish</code>: OPC UA → MQTT | |||
<code>Subscribe</code>: MQTT → OPC UA | |||
Structure defined via XML configuration | |||
== Communication Modes == | |||
=== JSON (Standard) === | |||
OPC UA values are sent as JSON | |||
Incoming JSON is parsed into variables | |||
Supports structures and arrays | |||
=== Sparkplug B === | |||
Uses protobuf encoding | |||
Supports standard Sparkplug topics (DBIRTH, DDATA, etc.) | |||
Automatic birth messages on connect | |||
Rebirth supported | |||
== Connection Configuration == | |||
Defined in XML: | |||
Broker address, client ID | |||
Authentication (username/password) | |||
TLS (CA, client certificate, private key) | |||
Last will message | |||
Auto reconnect | |||
Proxy support | |||
Message buffering and persistence | |||
== Security == | |||
TLS with certificates supported | |||
Optional server certificate validation | |||
PSK supported (if configured) | |||
== Buffering == | |||
Controlled via <code>maxBufferedMessages</code> | |||
Enables offline buffering | |||
Persistent storage via <code>PersistDir</code> | |||
== Cloud Support == | |||
=== Azure IoT Hub === | |||
Uses connection string | |||
Only one topic per hub | |||
=== AWS IoT === | |||
Certificate-based authentication | |||
== Topics == | |||
Defined under <code>Publish</code> / <code>Subscribe</code>. | |||
Key parameters: | |||
<code>qos</code> (0–2) | |||
<code>retain</code> | |||
<code>trigger_mode</code> (rising_edge, falling_edge, value_change) | |||
<code>status_var</code> | |||
<code>deadband</code> | |||
== Data Types == | |||
Supported: | |||
Numeric types (Int, UInt, Float, Double) | |||
Boolean, String, DateTime | |||
Arrays and structured data | |||
== Runtime Behavior == | |||
=== Subscribe === | |||
Parses incoming data (JSON / Sparkplug) | |||
Writes values into OPC UA variables | |||
Errors reflected in status | |||
=== Publish === | |||
Sends values on change or trigger | |||
Uses configured QoS and retain | |||
Sparkplug generates birth/data messages | |||
== Operation & Diagnostics == | |||
Typical workflow: | |||
Upload configuration | |||
Restart connections | |||
Check status | |||
For troubleshooting: | |||
Broker address | |||
Client ID | |||
Connection status | |||
XML configuration | |||
Certificates | |||
Topics and triggers | |||
Revision as of 09:12, 27 March 2026
IBH Link UA: MQTT Function
Status: 2026-03-26
This page summarizes the MQTT functionality of the IBH OPC UA Server/Client.
Overview
Supports MQTT publish and subscribe
Multiple parallel connections to different brokers
Configuration via ibhlinkua-mqtt.xml
Web interface for configuration management and diagnostics
Supports JSON and Sparkplug B
Includes TLS, certificates, buffering, and persistent storage
Web Interface
The MQTT section allows:
Upload / download configuration Restart connections Delete configuration View diagnostics (broker, client ID, status)
Basic Concept
Publish: OPC UA → MQTT
Subscribe: MQTT → OPC UA
Structure defined via XML configuration
Communication Modes
JSON (Standard)
OPC UA values are sent as JSON Incoming JSON is parsed into variables Supports structures and arrays
Sparkplug B
Uses protobuf encoding Supports standard Sparkplug topics (DBIRTH, DDATA, etc.) Automatic birth messages on connect Rebirth supported
Connection Configuration
Defined in XML:
Broker address, client ID Authentication (username/password) TLS (CA, client certificate, private key) Last will message Auto reconnect Proxy support Message buffering and persistence
Security
TLS with certificates supported Optional server certificate validation PSK supported (if configured)
Buffering
Controlled via maxBufferedMessages
Enables offline buffering
Persistent storage via PersistDir
Cloud Support
Azure IoT Hub
Uses connection string Only one topic per hub
AWS IoT
Certificate-based authentication
Topics
Defined under Publish / Subscribe.
Key parameters:
qos (0–2)
retain
trigger_mode (rising_edge, falling_edge, value_change)
status_var
deadband
Data Types
Supported:
Numeric types (Int, UInt, Float, Double) Boolean, String, DateTime Arrays and structured data
Runtime Behavior
Subscribe
Parses incoming data (JSON / Sparkplug) Writes values into OPC UA variables Errors reflected in status
Publish
Sends values on change or trigger Uses configured QoS and retain Sparkplug generates birth/data messages
Operation & Diagnostics
Typical workflow:
Upload configuration Restart connections Check status
For troubleshooting:
Broker address Client ID Connection status XML configuration Certificates Topics and triggers