After you complete the device configuration, you can use the online debugging function in the IoT Platform console to test and debug the applications.

Procedure

  1. Log on to the IoT Platform console and then, in the left-side navigation pane, click Maintenance > Online Debug.
  2. On the Online Debugging page, select the device to be debugged.

    After you select a device, you are automatically directed to the debugging page.



  3. Select Debug Physical Device.
  4. Select the feature that you want to test.
    • If you select a property, you must select Set or Get as the operation method. .
    • If you select an event, select Get as the operation method.
    Note If you have not defined properties or events for the product, go to the Product Details page to define features for the product.


  5. Dispatch the command.
    • Set a property: Enter a property in the format of {"YourPropertyIdentifier": Value}, and then click Dispatch Command. You can then see the operation result from the device log.
    • Get a property: Click Dispatch Command. Then, the latest property information reported by the device is displayed in the box.
    • Call a service: Enter an input parameter in the format of {"YourServiceInputParam": Value}, and then click Dispatch Command. You can then see the operation result from the Real-time Logs.
    • Get an event: Click Dispatch Command. Then, the latest event information reported by the device is displayed in the box.