getDeviceThingModelInfo
Requires:
DeviceKit≥2.0.7@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
getDeviceThingModelInfo(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Get device thing model information. On success, the callback returns GetDeviceThingModelInfoResponse with details such as modelId, productId, services.
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
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 | Minimum SDK versions |
|---|---|---|---|---|
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 | — | ||
extensions | Record<string, any> | 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