交互对象事件绑定
输入
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
iotId | string | 是 | — | 原生模型和孪生体自定义的iotid |
eventName | string | 是 | — | 原生模型和孪生体属性名称 |
props | string | 是 | — | 原生模型和孪生体属性值 |
调用
typescript
piclient.emit("iot.objectEvent",{
iotId: "",//原生模型和孪生体自定义的iotid
eventName: "",//原生模型和孪生体属性名称
props: "",//原生模型和孪生体属性值
})