IoT Platform allows you to simulate devices to facilitate IoT application development and testing.
Background information
You can implement an IoT Platform device by using the following process: A device is developed, the device sends data to IoT Platform, IoT Platform receives data from the device, and then an application is developed in the IoT Platform console. This development process is time-consuming.
IoT Platform provides the device simulation feature that allows you to simulate a device and the connection between the device and IoT Platform. You can use this feature for debugging in the following scenarios:
- Debug the topics and procedures in the upstream:
- Custom topics, including message reporting and message subscription
- The procedure to report properties
- The procedure to report events
- Debug the following topics and procedures in the downstream:
- Custom topics
- The procedures that are related to properties, including the procedures that are used to retrieve and set property values
- The procedure to invoke services
Limits
- The device simulation feature cannot be used to simulate devices that adopt pass-through transmission or devices that transmit data in a custom format.
- Device simulation cannot be started if the selected physical device is online or disabled. After you leave the device simulation page, the simulated device becomes offline.
Procedure
Result
After data is pushed, you can view device logs in the Device Logs section on the right side of the page. Click View Cloud Logs. On the Cloud run log tab, you can view the related IoT Platform logs.