English
English
简体中文
Register
Log In
English
English
简体中文
Register
Log In
Language
English
English
简体中文
Register
Log In

How to debug APIs with API Explorer?

Last Updated on2023-01-30 09:52:36
This topic describes how to subscribe to device control API products, and use API Explorer to check API calls and troubleshoot issues on theCloudpage of the Tuya IoT Platform.

Prerequisites

A sub-device is added to Tuya Edge Gateway (TEdge). For more information, seeManage Devices on Tuya Edge Gateway.

Procedure

  1. ChooseAPI ProductsIndustry ProjectIndustrial General Device Control. For more information, seeManage API Products.
  2. Subscribed ProductsIndustrial General Device ControlAuthorized Projects (Authorize)New Authorization, and select your project in the dialog box that appears.
  3. Cloud>API Explorerand send control commands. For more information, seeAPI Explorer.
  4. Send control commands with API Explorer.
    • API ExplorerControl Devicedevice_iddevice_idSub-devicespage of Tuya Edge Gateway.
    • commandsfield. The following code block shows the sample code:
  5. View device logs.
    Go to theLog querypage of the Tuya IoT Platform and enter the device ID to view device logs.
  6. View sub-device status.
    At the edge gateway, you can view the latest status of the sub-device for the edge gateway.

Click for services and help

Help Center