鏈接OenNET平臺上傳數據已經獲取云平臺數據 1.簡介
我創建了三個數據流,分別為Led1(735471469),led2(735480350),Led3(735480495) 我的API-KEY = FN8vCnpwAjyjTV2m1y=zpL451i4= 2.上傳數據到云平臺上
- Led2:
- POST /devices/735480350/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:8
-
- ,;led2,1
-
- Led3:
- POST /devices/735480495/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:8
-
- ,;led3,1
-
- Led1:
- POST /devices/735471469/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:8
-
- ,;led1,1
復制代碼
3.從云平臺獲取數據
- GET /devices/735480495/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:6
-
- ,;led3
-
- GET /devices/735480350/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:6
-
- ,;led2
-
- GET /devices/735471469/datapoints?type=5 HTTP/1.1
- api-key:FN8vCnpwAjyjTV2m1y=zpL451i4=
- Host:api.heclouds.com
- Content-Length:6
-
- ,;led1
復制代碼
STM32的代碼下載:
手機app控制例程.7z
(206.37 KB, 下載次數: 34)
2021-8-17 16:11 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
|