getDeviceThingModelInfo(params: Object)
Requires:
DeviceKit≥2.0.7@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Get device thing model information. On success, the callback returns GetDeviceThingModelInfoResponse with details such as modelId, productId, services.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
devId | string | Yes | Device ID |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | DeviceKit Since |
|---|---|---|---|
modelId | string | Thing Model ID | v3.3.0 |
productId | string | Product ID | v3.3.0 |
productVersion | string | Product version | v3.3.0 |
| Service list | v3.3.0 | ||
| Thing model extension properties in key-value form, used to carry information beyond the standard model | v3.3.0 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None