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