Custom topics that are used to send and receive data |
Use the device simulator to send an upstream message to a custom topic.
- Click the tab and then the Topic Category tab.
- Select a custom topic that is used to send the message, enter payload data, and then
set QoS to 0 or 1. Click Message Reporting.
- Select a topic that is used for message subscription. Click Subscribe.
|
Property submission |
Use the device simulator to submit a property to IoT Platform.
- Click the tab and then the Properties tab.
- Select a Thing Specification Language (TSL) module from the Module drop-down list.
- Select or enter a value in a property field. The value must match the data type and
value range of the property.
- Push the data.
Valid options:
- Send Command: Immediately push the data.
- Push Policy: Set a push policy. Valid values:
- At Specific Time: The data is pushed only once at a specified time.
- At Specific Interval: The data is pushed at a fixed interval during a specified period.
The interval is measured in seconds.
|
Event submission |
Use the device simulator to submit an event to IoT Platform.
- Click the tab and then the Events tab.
- Select a Thing Specification Language (TSL) module from the Module drop-down list.
- Select an event and enter the event data in the JSON format, such as
{"Power": "on"} .
- Push the data.
Valid options:
- Send Command: Immediately push the data.
- Push Policy: Set a push policy. Valid values:
- At Specific Time: The data is pushed only once at a specified time.
- At Specific Interval: The data is pushed at a fixed interval during a specified period.
The interval is measured in seconds.
|
Custom topics to send downstream data |
Enable IoT Platform to send a downstream message to a custom topic.
- Click the tab and then the Topic Category tab.
- Select a custom topic, enter payload data, and then set QoS to 0 or 1.
- Click Send Command.
|
Property query and setting |
Enable IoT Platform to send a downstream command to set a property value and then
retrieve the property value from the device simulator.
- Click the tab and then the Property debugging tab.
- Select a Thing Specification Language (TSL) module from the Module drop-down list.
- Enter a value in a property field and click Debugging. Then, click Set. After the device simulator receives the command, it sets the property to the new
value.
- On the right side of a property field, click Debugging. Then, click Get.
The latest property value is displayed in the field. If the property value does not
exist on the device simulator, no data is retrieved.
|
Service calling |
- Click the tab and then the Invoke Service tab.
- Select a Thing Specification Language (TSL) module from the Module drop-down list.
- In the field, enter the input parameters of the service. Then, click Send Command.
The input parameters must be in the JSON format. Example: {"Switch":0} .
|