Help Center/ IoT Device Access/ Getting Started/ Quick Application Access
Updated on 2024-11-04 GMT+08:00

Quick Application Access

The IoT platform provides various APIs to reduce the application development difficulty and improve the application development efficiency. This topic uses local debugging (Postman) as examples to describe how to connect an application to IoTDA using HTTPS.

Local Debugging

This section uses Postman to describe how to use IoTDA by calling APIs on the application side.

The procedure is as follows:

Step 1 Enable IoTDA. Access the IoTDA service page, and click Access Console to subscribe to the service.

Step 2 Create an MQTT product.

Step 3 Configure the environment. Download and install Postman 7.17.0.

Step 4 Call the service. Use Postman to call the API and check the returned result, status code, and error code.

  • Step 1 Enable IoTDA.

    Currently, IoTDA is available in AP-Bangkok, AP-Singapore, CN-Hong Kong, and AF-Johannesburg regions.

  • Step 2 Create a product.

    Create a product on IoTDA before calling APIs.

    1. Access the IoTDA service page and click Access Console. Click the target instance card.
    2. Choose Products in the navigation pane and click Create Product.
    3. Set the parameters to create a product that uses MQTT, and click OK.

      Basic Information

      Resource Space

      The platform automatically allocates the created product to the default resource space. If you want to allocate the product to another resource space, select the resource space from the drop-down list. If a resource space does not exist, create one.

      Product Name

      Customize the product name. The value can contain up to 64 characters. Only letters, digits, and special characters (_?'#().,&%@!-) are allowed.

      Protocol

      MQTT is recommended.

      Data Type

      Select JSON.

      Industry

      Set this parameter as required.

      Sub-industry

      Set this parameter as required.

      Device Type

      Set this parameter as required.

      Advanced Settings

      Product ID

      Set a unique identifier for the product. If this parameter is specified, IoTDA uses the specified product ID. If this parameter is not specified, IoTDA allocates a product ID.

      Description

      Provide a description for the product. Set this parameter as required.

  • Step 3 Configure the environment.

    Download and install Postman. For details, see Installing and Configuring Postman.

  • Step 4 Call the service.

    After configuring Postman, debug the following APIs when the application simulator connects to IoTDA using HTTPS:

Advanced Experience

After using Postman to connect a simulated application to the platform, you may understand how the application interacts with the platform through open APIs.

To better experience the IoTDA service, develop real-world applications and devices and connect them to the platform. For details, see Developer Guide.