szcheng 发表于 2015-5-5 12:19:53

查询器件

想根据product_key和mac查询设备,获取did,发送数据包如下:
GET /app/devices?product_key=7fbb80daadd444a3a2c193e5ce31f2b9&mac=F0DEF1B61D3E HTTP/1.1
Host: api.gizwits.com
Connection: keep-alive
Accept: */*
X-Gizwits-Application-Id: c99304b8eeea4f52b9ec7b88a3999c86
Content-Type: application/json

平台回应:
HTTP/1.1 404 NOT FOUND
Server: nginx/1.0.15
Date: Tue, 05 May 2015 04:13:37 GMT
Content-Type: application/json
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept, Host, Cookie
Allow: GET, HEAD, OPTIONS
Set-Cookie: __org=; Domain=.gizwits.com; Path=/

52
{"error_message": "device not found!", "error_code": 9014, "detail_message": null}
0

请问问题在哪里?




Kemp 发表于 2015-5-5 13:12:30

这个MAC地址的设备没有登录过机智云或设备不在线。确认下是不是地址或key错了
页: [1]
查看完整版本: 查询器件