mapPublishMatterDps(dpState: DpState, dpSchema: DpSchema)
Requires:
≥1.15.0
Description
Map standard DP state to Matter DP state (downlink scenario: standardDpState → matterDpState).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| Yes | Standard-side DP state to be sent | ||
| Yes | dpSchema object |
Return Value
Type: DpState
Converted Matter DP state
Referenced Types
type
DpValueDatapoint value type, which can be boolean, number, or string.Valid Values
DpSchema.mode
| Value | Description | Since |
|---|---|---|
rw | - | - |
ro | - | - |
wr | - | - |
DpSchema.property.type
| Value | Description | Since |
|---|---|---|
string | - | - |
bool | - | - |
value | - | - |
enum | - | - |
bitmap | - | - |
raw | - | - |
DpSchema.type
| Value | Description | Since |
|---|---|---|
raw | - | - |
obj | - | - |