Local OPC UA server & MQTT broker
Everything ConnectMQ Edge collects is also available on the plant network, without going through the cloud: one OPC UA endpoint and one MQTT broker instead of many protocols.
Local OPC UA server
| Endpoint | opc.tcp://<pc-name>:48010/ConnectMQ (port, path and host names can be changed) |
| Address space | Objects/ConnectMQ/<Enterprise>/<Site>/.../<Device>/<Tag>, plus a _State variable per device |
| Node IDs | ns=<urn:connectmq:edge>;s=<ISA-95 topic> |
| Security | None, or Sign and SignAndEncrypt with Basic256Sha256, Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss |
| Users | Anonymous, or user name and password (the password is encrypted even on the None endpoint) |
| Writing | Writable tags can be written over OPC UA; Edge passes the write to the device |
| Certificates | Created automatically in %ProgramData%\ConnectMQ\Edge\pki |
The OPC UA server is off after installation. Turn it on in Settings › Windows Service Settings › Start with the service, and watch sessions and values on the Local OPC UA Server page.
Local MQTT broker
An MQTT broker runs inside the Edge service on port 1883. HMIs, scripts and other gateways on the plant network connect to it.
- Tag values are published here too, on the same ISA-95 topics (optionally retained).
- Messages that local clients publish and that match the forward filters (for example
plant/#) are sent on to ConnectMQ Cloud through the bridge, with the topic prefix and the offline buffer. - Anonymous access can be turned off and local users added in Settings › Local MQTT Settings, which also shows connected clients and lets you publish a test message.
- When disabled, local clients are refused; the broker keeps listening only on
127.0.0.1for the desktop app. - MQTT 3.1.1 clients must send a client ID; MQTT 5 clients with an empty client ID get one assigned.
Messages forwarded from local clients count towards your ConnectMQ plan's message and traffic limits like tag values do. Topics under $cmq/ are reserved for the desktop app.
To read Sparkplug B or other MQTT sources into Edge as tags, see MQTT Client & Sparkplug B.