Device-oriented interfaces for device-related services (storage, command, etc.) in MQTTS IoT Suite are all provided in the form of topic. A device can call the service interface by publishing messages to a system topic, or subscribe to a system topic for receiving service messages or notifications. The collection of system topics provided by services forms a topic cluster.
MQTTS IOT Suite currently includes: data point topic cluster, command topic cluster, child device topic cluster and device shadow topic cluster, as shown below:
A device can upload data for storage by data point topic clusters and have immediate access to data storage results.
Topic in cluster starts with $sys/{pid}/{device-name}/dp.
When data are uploaded by hitting “Publish”, payload should be formatted as agreed by the platform.
Support reporting multiple pieces of data at one time, and support using timestamps in reporting.
Inform you of data processing results immediately (subscription required).
See the Data Point Topic Cluster for details.
A device can get an immediate application command using a command topic cluster and report the execution result.
Topic in cluster starts with $sys/{pid}/{device-name}/cmd.
Get device commands immediately (subscription required).
The platform passes through device commands and responses by publish payload.
Each command has a unique uuid, based on which the application can query the records on command creation and response.
See the Device Command Topic Cluster for details.
A device can interact with the image service by image topic clusters to synchronize the state/configuration information.
Topic in cluster starts with $sys/{pid}/{device-name}/image.
Support uploading and updating custom device state/configuration information.
Get device state update messages immediately (subscription required).
Support querying all current image information.
See the Device Image Topic Cluster for details.
(coming soon)