Last Updated on: 2024-09-10 07:19:13
Query the things data model defined for the specified device.
Parameter name | Type | Description |
---|---|---|
result | Object | The returned result. |
Description of result
Parameter name | Type | Description |
---|---|---|
model | String | The functional definition of the specified things data model. For more information about the data format of model values, see Data description of the model field. |
{
"result": {
"model": "{"modelId":"000004****","services":[{"code":"","description":"","name":"","actions":[{"code":"setPassword","inputParams":[{"code":"password","name":"Password","typeSpec":{"typeDefaultValue":"","type":"string","maxlen":1024}}],"description":"Set or update the unlocking password on the app","outputParams":[{"code":"state","name":"State","typeSpec":{"max":100,"scale":0,"type":"value","unit":"","min":1,"step":0}}],"name":"Set Password","abilityId":104}],"events":[{"code":"doorStateEvent","description":"Report the unlocking event when unlocking is triggered","outputParams":[{"code":"doorState","name":"Door State","typeSpec":{"range":["Open","Closed"],"type":"enum"}}],"name":"Unlocking Event","abilityId":103}],"properties":[{"code":"batterLevel","description":"Battery level of the door lock","accessMode":"rw","name":"Remaining Battery Capacity","typeSpec":{"max":100,"scale":0,"type":"value","unit":"%","min":1,"step":0},"abilityId":102}]}]}"
},
"t": 1673423649773,
"success": true
}
For more information, see error code.
For more information, see Limits on API Request Frequency.