After a device can submit data to IoT Platform, you can test downstream messaging by sending a command from IoT Platform to the device. This article describes how to set the properties of a street lamp device by using the online debugging feature in the IoT Platform console.

Procedure

  1. Log on to the IoT Platform console.
  2. On the Overview page, click the Public Instance card.
    Important If IoT Platform is activated in the China (Shanghai) or Japan (Tokyo) region, perform this step. If IoT Platform is activated in other regions, skip this step.
  3. In the left-side navigation pane, choose Maintenance > Online Debug.
  4. On the Online Debug page, select the StreetLamp product and the device1 device.
  5. On the Property Debugging tab, set the parameters to send a downstream command.
    Street lamp-debug an actual device
    ScenarioProcedure
    ModuleSelect Default Module.
    Main Light SwitchSelect On-1, and choose Debugging > Set on the right of the drop-down box.
    CurrentThe Current property is read-only. To test downstream messaging, you do not need to set this property.
  6. View the property status of the device.
    • In the Real-time Logs section of the Online Debug page, view the downstream and upstream data.Street lamp-Debug an actual device-Real-time data
    • In the left-side navigation pane, choose Devices > Devices. Find the device, and then click View in the Actions column.
      On the Device Details page, click the TSL Data tab. On this tab, click Status to view the running status of the device.Street lamp device-The main switch is on
  7. Optional. If you want to use your cloud-based application to set device properties, you can download the cloud SDK and call the specified API operation to send commands. For more information, see Cloud Developer Guide.