Topics & payloads
Every tag ConnectMQ Edge reads arrives in your ConnectMQ broker on its own ISA-95 topic, with a JSON payload that carries the value, quality, unit and timestamp.
Topic structure
[TopicPrefix/]<Enterprise>/<Site>/<Area>/<Line>/<Cell>/<Device>/<Tag>- The ISA-95 levels are set once for the project; each device can override Area, Line and Cell. Empty levels are skipped.
- A
.or/in a tag name creates a sub-level:Motor1.Speed→.../motor1/Speed. +,#and spaces are replaced with_.
Example: connectmq/site1/production/line1/test/Demo/Temperature
Payload
{
"timestamp": "2026-10-21T14:29:00.123Z",
"value": 25.84,
"quality": "good",
"unit": "°C",
"dataType": "Float64",
"tag": "Temperature",
"device": "Demo",
"channel": "Sim"
}| Field | Meaning |
|---|---|
timestamp | When the value was measured (not when it was sent; important after an offline period). |
value | The scaled value: raw × Scale + Offset. |
quality | good, uncertain, stale, bad, bad_comm_failure or bad_config_error. |
unit, dataType | From the tag definition. |
tag, device, channel | Where the value comes from. |
In the ConnectMQ console every tag topic gets live values with a chart, and you can add alert rules such as {value} > 80.
Status topics
| Topic | Content |
|---|---|
<device topic>/$status (retained) | {"state":"online"} or offline, with the error and driver. |
<Enterprise>/<Site>/$edge/<EdgeId> (retained, Last Will) | Whether the Edge service itself is online. |
Writing tags from the cloud
When writing is enabled for the bridge and the tag is writable, publish to <tag topic>/set:
mosquitto_pub -h broker.connectmq.com -p 8883 --capath /etc/ssl/certs \
-u YOUR_USERNAME -P 'YOUR_PASSWORD' -i YOUR_CLIENT_ID_ops \
-t 'connectmq/site1/production/line1/test/Demo/Setpoint/set' -m '{"value": 12.5}'A plain 12.5 works too. Edge applies the reverse scaling and writes the value through the driver. Protect /set topics with access control so only operators may publish to them.
What gets published
| Setting | Effect |
|---|---|
| Publish mode: OnChange (default) | Publish when the value changes by more than the deadband, or when the quality changes. |
| Publish mode: Always | Publish on every read. |
| Heartbeat | Re-publish unchanged values every N seconds so dashboards know the tag is alive. |
| Publish filters | MQTT filters (+, #) on the ISA-95 topic. Only matching tags go to the cloud, for example connectmq/site1/production/#. |
| Tag › Publish: off | The tag stays local (OPC UA and local MQTT only). |
Use these to keep the message rate and traffic within your plan's limits: a 1-second poll of 200 tags with Always is 200 messages per second; with OnChange and sensible deadbands it is usually a fraction of that.