您的位置:首页 > 其它

通过GPRS将GPS数据上传到OneNet流程

2016-09-25 19:28 495 查看
AT
OK
AT+CGCLASS="B"
OK
AT+CGDCONT=1,"IP","CMNET"
OK
AT+CGATT=1
OK
AT+CLPORT="TCP","2000"
OK
AT+CIPSTART="TCP","183.230.40.33",80
OK
CONNECT OK
AT+CIPSEND
> POST /devices/3225187/datapoints HTTP/1.1
api-key: R9xO5NZm6oVI4YBHvCPKEqtwYtMA
Host: api.heclouds.com
Content-Length:94

{"datastreams":[{"id":"location","datapoints":[{"value":{"lon":112.40832,"lat":34.636055}}]}]}

SEND OK
HTTP/1.1 200 OK
Date: Sun, 25 Sep 2016 11:21:56 GMT
Content-Type: application/json
Content-Length: 26
Connection: keep-alive
Server: Apache-Coyote/1.1
Pragma: no-cache

{"errno":0,"error":"succ"}

AT+CIPCLOSE=1
CLOSE OK
AT+CIPSHUT
SHUT OK
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: