This article describes how to customize the topic category of a product. Each topic category of a product is used by all devices of the product.
Procedure
A topic that includes one or more wildcards
If you set the Device Operation Authorizations parameter to Subscribe, IoT Platform allows you to specify two wildcards in a topic. This feature allows a device to subscribe to multiple topics at a time.
Wildcard | Description |
---|---|
# | This wildcard must be specified for the last field in a topic and can match all filed
values at the current level and sub-levels.
For example, you create the |
+ | This wildcard can match all field values at the current level.
For example, you create the |
A topic that includes one or more wildcards represents a set of topics. A device can subscribe to the topic. However, on the Topic List page of the device, the Post Message action is unavailable for the topic. You cannot publish device messages to the topic.
Topic-based communication
IoT Platform calls the Pub API operation to publish messages to a specified topic. Devices receive messages from IoT Platform by subscribing to the topic.
For more information about topic-based communication, see Use custom topics for communication.