getDpDataByMesh(params: Object)
Requires:
DeviceKit≥2.4.0@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Description
Fetch DP data of a Mesh sub-device; on success, the success callback has no return body (t.Null), indicating only that the DP read request has been initiated/completed
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | Mesh sub-device ID (target device) |
| Yes | List of DP IDs to query | ||
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None