ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
~~~[api] get:/index/device/variable *int:device_id#设备ID int:limit=15#每页显示数量 int:page=1#页码 <<< success { "code": 0, "msg": "获取成功", "count": 2, "data": [{ "id": 16, "device_id": "测试03", "property_id": "湿度", "SN": "98428892e146646dc9cc5308e44a4c97", "name": "湿度传感01", "identifier": "Humidity", "value": "76.2", "unit": "%", "desc": "湿度传感", "create_time": "2020-04-21 16:07:06", "class_name": "app\\common\\model\\DeviceVariable" }, { "id": 15, "device_id": "测试03", "property_id": "温度", "SN": "98428892e146646dc9cc5308e44a4c97", "name": "温度传感01", "identifier": "Temperature", "value": "22.9", "unit": "度", "desc": "温度传感", "create_time": "2020-04-21 16:01:16", "class_name": "app\\common\\model\\DeviceVariable" }] } <<< error { "code": 1, "msg": "请先登录" } ~~~ | 字段 | 说明 | | --- | --- | | id | 变量ID | | area | 区域分组 | | device_id | 设备名称 | | name | 变量名 | | value | 当前值 | | unit | 单位 |