创建设备-python tricks a buffet of awesome python features

时间:2024-07-09 04:32:59
【文件属性】:

文件名称:创建设备-python tricks a buffet of awesome python features

文件大小:1.81MB

文件格式:PDF

更新时间:2024-07-09 04:32:59

IoT 智能家居

} c. 区域接口测试 (1) 查询所有区域 curl -X GET http://127.0.0.1:5122/iot/api/sites (2) 查询特定区域 curl -X GET http://127.0.0.1:5122/iot/api/sites/ 7b0db932-43c2-11e8-a7b2-705ab6ad9cae (3) 创建一个新区域 curl -X POST http://127.0.0.1:5122/iot/api/sites -d'{"token":"","name":"test","description":"testsite","metadata" : { },"ext":{} }' (4) 更新一个区域 curl -X PUT http://127.0.0.1:5122/iot/api/sites -d'{"token":"714567ca-6888-11e8-846f-00163e2e5c59","name":"test","descr iption":"testsite","metadata" : { },"ext":{} }' (5) 删除一个区域 curl -X DELETE http://127.0.0.1:5122/iot/api/sites/714567ca-6888-11e8-846f-00163e2e5c59 (6) 异常返回结果 { "code": 40X, "result": { "createdBy": "", "createdDate": "", "description": "", "ext": {}, "metadata": {}, "name": "", "token": "" } } d.设备管理接口测试 (1) 查询所设备 curl -X GET http://127.0.0.1:5122/iot/api/devices?type=all (2) 查询设备 curl -X GET http://127.0.0.1:5122/iot/api/devices/test1234560z (3) 创建设备


网友评论