Skip to content

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 ​

text
[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 ​

json
{
  "timestamp": "2026-10-21T14:29:00.123Z",
  "value": 25.84,
  "quality": "good",
  "unit": "°C",
  "dataType": "Float64",
  "tag": "Temperature",
  "device": "Demo",
  "channel": "Sim"
}
FieldMeaning
timestampWhen the value was measured (not when it was sent; important after an offline period).
valueThe scaled value: raw × Scale + Offset.
qualitygood, uncertain, stale, bad, bad_comm_failure or bad_config_error.
unit, dataTypeFrom the tag definition.
tag, device, channelWhere 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 ​

TopicContent
<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:

bash
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 ​

SettingEffect
Publish mode: OnChange (default)Publish when the value changes by more than the deadband, or when the quality changes.
Publish mode: AlwaysPublish on every read.
HeartbeatRe-publish unchanged values every N seconds so dashboards know the tag is alive.
Publish filtersMQTT filters (+, #) on the ISA-95 topic. Only matching tags go to the cloud, for example connectmq/site1/production/#.
Tag › Publish: offThe 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.

Fully managed MQTT broker for connected devices.