queryDps
Requires:
DeviceKit≥1.2.6@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
queryDps(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Query dps
Parameters
| Property | Type | Required | Description | DeviceKit Since | Minimum SDK versions |
|---|---|---|---|---|---|
deviceId | string | Yes | Device ID | - | — |
dpIds | number[] | Yes | dpids array | - | — |
queryType | number | No | Query type 0: null dp query (MQTT protocol 5, LAN protocol 7, Bluetooth 03 command query) 1: regular query (MQTT protocol 31, LAN protocol 16, Bluetooth 03 command query) 2: send null dp query + regular query together 3: For single-point Bluetooth, perform a null dp query with the 03 command; other devices use regular query (aligned with the RN container's impl_getDpsWithDevId method). Note: Supported starting from TUNIDeviceKit 4.21.0; lower versions will use a null dp query > 3: is a null dp query | v4.1.10 |
|
complete | () => void | No | Completion callback (executed on both success and failure) | - | — |
success | (params: boolean) => 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