godsharp / opcsample

Opc Sample
https://godsharp.github.io/opcsample/
35 stars 14 forks source link

无法接收OnDataChangedHandler事件 #5

Closed zengjl closed 2 years ago

zengjl commented 2 years ago

image 注册好DataChangedHandle后无法接收到数值变化事件

seayxu commented 2 years ago

https://github.com/godsharp/opcsample/blob/main/src/GodSharpOpcDaSample/README.md#L50

If you want to use data change event, you should set IsSubscribed value to true,default is false.

如果要使用改变事件,需要设置 IsSubscribed=true 在创建组的时候。