鏈接OenNET平臺(tái)上傳數(shù)據(jù)已經(jīng)獲取云平臺(tái)數(shù)據(jù) 1.簡(jiǎn)介
我創(chuàng)建了三個(gè)數(shù)據(jù)流,分別為L(zhǎng)ed1(735471469),led2(735480350),Led3(735480495) 我的API-KEY = FN8vCnpwAjyjTV2m1y=zpL451i4= 2.上傳數(shù)據(jù)到云平臺(tái)上
- 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
復(fù)制代碼
3.從云平臺(tái)獲取數(shù)據(jù)
- 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
復(fù)制代碼
STM32的代碼下載:
手機(jī)app控制例程.7z
(206.37 KB, 下載次數(shù): 34)
2021-8-17 16:11 上傳
點(diǎn)擊文件名下載附件
|