Based on Huawei's acquisition of IOT platform data RESTfulAPI

Step 1: Log https://www.huaweicloud.com/product/iot.html later, select IoT level IoT things in the product in Taiwan enhanced version.  

  

Step 2: enter the enhanced version of the IoT platform, choose Development Center, select the item to be collected data.

  

Step 3: Select docked in the application information, recording application ID, the application key (if not previously recorded, can be reset) and HTTPS access.

  

Step 4: Select Device Manager in the product, select the device you want to view.

   

Step 5: the device records the details of the devices apparatus ID .

   

Step 6: In https://support.huaweicloud.com/devg-IoT/iot_02_1004.html in, download the appropriate certificate.

   

Step 7: Select the Postman provided.

   

Step 8: Close certificate verification in the settings and configure client certificate (ie certificate downloaded in step 6), where IP and port "Host" column fill in the address and port of Things platform open to applications (HTTPS protocol).

  

  

  

Step 9: enter https://support.huaweicloud.com/iot/index.html later, after selecting API reference, select IoT platform in the North, the interface specification to view the list of interfaces in the API reference as needed.

   

Step 10: firstly secure access application in Postman, gets accessToken

   Interface Prototype

   

   The required parameters

   

  The specific operation Postman

   

  

Step 11: acquiring the accessToken be recorded later.

   

Step 12:在完成上述应用安全接入后,即可进行其他接口操作,下面以查询单个设备信息为例。

   接口原型

   

  所需参数

   

Step 13:在Postman中发送相应的请求

   

Step 14:获取到该设备的数据。

   

 

Guess you like

Origin www.cnblogs.com/berryplanet/p/11243537.html