SmartGroupModel.publishDps(data: Record<string, DpValue>, options?: SendDpOption)
Requires:
@ray-js/panel-sdk≥1.5.0
Description
Batch control smart group DPs
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
data | Record<string, DpValue> | Yes | Key-value pairs to send. Keys are DP Code; value types are inferred from the Schema: bool -> boolean, value -> number, enum -> property.range literal union, bitmap -> number, string/raw -> string |
| No | Send options |
Return Value
Type: Promise<boolean>
Whether the send succeeded
Referenced Types
type
DpValueDatapoint value type, which can be boolean, number, or string.