publishDpsWithPipeType
Requires:
DeviceKit≥1.2.6@ray-js/ray≥0.6.23
Platforms:
iOSAndroid
Method signature
publishDpsWithPipeType(params: )Minimum SDK versions
- iOS
ThingSmartDeviceKitBizBundle - ≥ 5.2.0
- Android
com.thingclips.smart:thingsmart-bizbundle-devicekit - ≥ 5.2.0
Description
Send dps control commands over a specified channel
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
deviceId | string | Yes | Device ID | — |
dps | Record<string, Record<string, any>> | Yes | dps | — |
mode | number | Yes | Delivery channel type 0: LAN 1: Network 2: Auto | — |
pipelines | number[] | Yes | Priority of delivery channels LAN = 0, // LAN MQTT = 1, // MQTT HTTP = 2, // Http BLE = 3, // Single Point Bluetooth SIGMesh = 4, // Sig Mesh BLEMesh = 5, // Thing Private Mesh BLEBeacon = 6, // Beacon | — |
options | Record<string, Record<string, any>> | Yes | Reserved flag for delivery logic configuration; can be extended later, for example to deliver sounds or define follow-up actions | — |
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