Subtopic
Written by
Updated at September 23, 2024
A subtopic is a custom topic created within existing device and registry topics. You do not need to create a subtopic, just start sending messages to it.
Everything that comes after a device or registry topic and separated by /
is considered a subtopic:
<device_or_registry_topic>/<subtopic_name>
Examples of subtopics:
$devices/<device_ID>/events/bedroom/temperature
: Subtopic to receive bedroom temperature data.$devices/<device_ID>/state/bedroom/temperature
: Subtopic to receive bedroom temperature data, which stores the most recent message sent to this subtopic.$registries/<registry_ID>/commands/bedroom
: Subtopic to send commands to all devices in the bedroom.$registries/<registry_ID>/config/bedroom
: Subtopic to send commands to all devices in the bedroom, which stores the last message sent to this subtopic.
Subtopics are based on the same operating principles and limits as topics.