查询profile
GET
/api/profile/get
请求参数
Query 参数
idSn
string
必需
示例值:
gateway00001
path
string
可选
示例值:
props.basic
productId
string
可选
示例值:
e7cf8d1eda8d49b89638a549a0d8e9ab
Header 参数
Authentication
string
必需
示例值:
{{token}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'ssiot.cc/api/profile/get?idSn=gateway00001&path=props.basic&productId=e7cf8d1eda8d49b89638a549a0d8e9ab' \
--header 'Authentication: 在用户管理中创建或通过login接口获取' \
--header 'Authentication;'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{
"code": 200,
"message": "操作成功",
"result": {
"createTime": "2023-05-08 13:57:18",
"devSn": "0638633006916920",
"productModel": "",
"profile": {
"config": {
"sensor": {
"a": {
"b": {
"calc": {
"base": 0,
"decimal": 0,
"mult": 1
},
"group": "1",
"param": {
"count": 0,
"offset": 0,
"read": 3,
"reg": 98
},
"type": "uint32",
"unit": "Nm³"
}
},
"humidity": {
"humidity": "a"
},
"runtime": {
"mem": {
"ddd": "1"
}
}
}
},
"props": {
"basic": {
"alarmStatus": true,
"createTime": "2023-05-08 13:57:18",
"deptId": "78e2374b-8ca0-48eb-9ad9-2546b79bacdb",
"deptName": "",
"gatewaySn": "wh_gw001",
"id": "bfe679893c12411e9f220eba290da404",
"lastLiveTime": "2023-05-16 19:01:23",
"location": {
"address": "西藏自治区那曲市双湖县措折强玛乡云霄湖",
"lat": 34.152405,
"lng": 87.202442
},
"logoutTime": "2023-05-12 16:54:51",
"name": "zliu的测试设备",
"onlineStatus": "online",
"productModel": "",
"registerTime": null,
"sn": "0638633006916920",
"svcInfo": null,
"type": "device",
"updateTime": "2023-05-17 11:34:48",
"view": null
},
"system": {}
},
"sensor": {
"humidity": 10,
"motion": {
"person": "xxxxx"
},
"runtime": {
"cpu": 10,
"mem": "333"
},
"temprature": 50
}
},
"updateTime": "2023-05-17 11:34:48"
},
"success": true,
"timestamp": 1684824034003
}
修改于 2023-11-01 03:19:50