链接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)
|