ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
This tutorial mainly introduces how to simulate data upload by using API testing tool.     **Hardware**   No hardware is required. Only simulate data upload by API testing tool  provided by Devicebit platform.   **Procedure:**   1 Register Devicebit Account (www.devicebit.com)   ![](http://upload-images.jianshu.io/upload_images/5875248-301040f947a77b3e.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)   Pic.1  Sign Up    2 Add ***My Device, Sensors: Humidity and Temperature*** (The steps are as follows. Note: note down the ID, for it will be used in Api calling.)      2.1 Add A Device     After login, go to My Devices -> Devices->Add a Device      First, click on Devices  -> Add A Device , as the picture1 below. After entering the related  information, click on Save.   ![](http://upload-images.jianshu.io/upload_images/5875248-7e4f1a573dd71b21.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.2 Add A Device          2.2 Add Humidity            The next step is to add the humidity sensor. Go to** *My Devices-> Sensors&Controllers->Sensor***, click on ***Add****.*   ![](http://upload-images.jianshu.io/upload_images/5875248-25ee1e3b0525c354.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.3  Sensors                 Then there will be the ***Add A Sensor*** page.    ![](http://upload-images.jianshu.io/upload_images/5875248-a526dbd4f59c7c2e.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)   Pic.4  Add Humidity         As the above picture shows, enter Humidity for ID (Note down the  **ID** for it will be used in Api calling). Select **Humidity  Monitoring** for ***Type***. Seclet % for ***Unit*** . Select My Device which is created previously. Enter **Humidity ***for** Name***. If you want others could view the humidity data, tick ***Yes*** for ***Public*** item.   2.3 Add Temperature           Add the ***Temperature*** sensor in the same way. Please see the following picture.    ![](http://upload-images.jianshu.io/upload_images/5875248-b8b1ff418e10ffff.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.5  Add Temperature               After setting up, as picture 5 shows, note down the ***ID*** because it will be used in Api calling.   ![](http://upload-images.jianshu.io/upload_images/5875248-252c0d805f1a7d4b.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.6  Sensor ID    3 Now, let's move on to simulate data upload by using Api testing tool.      At the home page (the website is www.devicebit.com) click on ***Documentation*** ![](http://upload-images.jianshu.io/upload_images/5875248-47285e1713a2c7ec.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.7  Home Page    and then go to **API Directory-> Sensor ->Upload Sensor Data**   ![](http://upload-images.jianshu.io/upload_images/5875248-251143a82d45fc37.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)   Pic.8  API Directory      Website http://www.devicebit.com/dev/apiList?version=1&sk=69                http://www.devicebit.com/dev/apitest/3   ![](http://upload-images.jianshu.io/upload_images/5875248-43385cd3c136c6d7.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240) Pic.9 On-line test    Click on ***on-line test*** ![](http://upload-images.jianshu.io/upload_images/5875248-9189516a45c179fb.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)   Pic.10  API Testing Tool  Enter your **Userkey**  Enter ***Device ID*** at API URL  http://www.devicebit.com/api/V1/gateway/UpdateSensors/{device ID} [(01 for exampe)](http://www.lewei50.com/api/V1/gateway/UpdateSensors/%E4%BD%A0%E7%9A%84%E7%BD%91%E5%85%B3%E5%8F%B7)   After entering the device ID, the APIURL is: http://www.devicebit.com/api/V1/gateway/UpdateSensors/01    ![](http://upload-images.jianshu.io/upload_images/5875248-4d20a426fb793a29.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.11  Userkey & Device No.    Change ***T1*** to ***Temperature*** for ***Name***; change ***1*** to ***32*** for **Value***;    Change ***01H1*** to ***Humidity*** for ***Name***; change ***96.2***  to ***75*** for ***Value***.   ![](http://upload-images.jianshu.io/upload_images/5875248-8bd1cebcac05e996.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.12  Post Data   Click on ***Run***, and then the request detail will be displayed.  ![](http://upload-images.jianshu.io/upload_images/5875248-155ac589f0f24f1c.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.13  Request Detail            At last, Go to ***My IOT -> Sensors&Controllers->Sensor List***, you will see the following value.  ![](http://upload-images.jianshu.io/upload_images/5875248-25994a4da11d5380.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)  Pic.14  The Value      Well Done! Your data upload is successfully simulated by using API testing tool!