Glossary Updates12 new terms added to the glossaries · October 2, 2026, 22:44 CEST
AI TechDocKnowledge

Glossary · Industrial communication

MQTT topic

Also known as: Topic (MQTT), Topic name, Topic filter

German: MQTT-Topic

In MQTT, a topic is the UTF-8 string, organized in levels separated by slashes, to which a client publishes a message and against which the broker matches subscriptions, where subscribers may use the wildcards + for exactly one level and # for all remaining levels.

  • Industrial communication
  • Standards

In one sentence

An MQTT topic is a slash-separated string that messages are published to; subscribers use the wildcards + (one level) and # (all remaining levels).

Example

An edge gateway publishes to plant1/line3/labeler/state; a dashboard subscribes to plant1/line3/+/state for every machine's state and the historian to plant1/# for everything.

How it applies

  • Design: MQTT defines the syntax, not the structure. A topic tree is designed, for example along the plant hierarchy (site, area, line, machine, data point), and Sparkplug B prescribes one such structure. Topics are case-sensitive, and a leading slash creates an empty first level.
  • Wildcards: + matches exactly one level, # matches the current level and everything below and must stand last. Topics starting with $ (such as $SYS broker statistics) aren't matched by wildcards at the first level.
  • Security: Broker access rules are usually defined per topic or topic prefix. A structured tree makes it possible to let a machine publish only to its own branch.
  • Documentation: The documentation team documents the topic tree with each topic's payload schema, units, QoS, retain setting and publisher, so consumers don't have to reverse-engineer it.

Topic vs. payload

The topic says where a message belongs; it carries no data type or meaning by itself. The payload schema gives the bytes their meaning: protocol vs. data model again.

By knowledge.aitechdoc.world · Published September 28, 2026 · Last reviewed

Source: OASIS, MQTT Version 5.0, section 4.7 Topic Names and Topic Filters

Definitions follow the cited standards and specifications. Where a source is a copyrighted publication, such as an ISO, IEC or EN standard, the definition is a close paraphrase, not a verbatim quotation, so as not to infringe copyright. We recommend reading the original publication. The sections “How it applies” are editorial commentary by AI TechDoc Blog and are not part of any standard.

Seen a mistake? Send us a note!