getMeshDeviceId
Requires:
DeviceKit≥2.4.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
getMeshDeviceId(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Get a sub-device's device ID by nodeId; on success, the success callback returns DeviceResult containing the sub-device deviceId
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
nodeId | string | Yes | Mesh sub-device nodeId (getMeshDeviceId uses plain format, getMeshDeviceIdHex uses Hex format) | — |
deviceId | string | Yes | deviceId (gateway 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 |
|---|---|---|---|---|
deviceId | string | The queried Mesh sub-device deviceId | v3.3.0 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None