Hi
I've noticed that dpConnect() keeps calling the callback function, even if the value of the input parameters do not change.
dpConnect("callbackFunction", dp1:_online.._value)
If I put a DebugN inside the callbackFunction, I keep seeing in the log that the function is called.
dp input parameters have an OPCUA subscription as pheriphery address. But their value don't change.
There's something I'm missing ?
Thank you
dpConnect keeps calling callback function
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: dpConnect keeps calling callback function
- gschijndel
- Posts:376
- Joined: Tue Jan 15, 2019 3:12 pm
Re: dpConnect keeps calling callback function
Perhaps the same value is written multiple times. Are other attributes (like the timestamp) changing?
- leoknipp
- Posts:2928
- Joined: Tue Aug 24, 2010 7:28 pm
Re: dpConnect keeps calling callback function
The "wantsAnswer" parameter only defines if the work function is triggered immediately when doing the dpConnect().
During runtime it has no effect if the parameter is set to to true/false.
Best Regards
Leopold Knipp
Senior Support Specialist
During runtime it has no effect if the parameter is set to to true/false.
Best Regards
Leopold Knipp
Senior Support Specialist
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: dpConnect keeps calling callback function
Oh, sorry. I misunderstood Mgiacome's problem.
- Mgiacome
- Posts:21
- Joined: Thu Sep 26, 2024 1:35 pm
Re: dpConnect keeps calling callback function
Thanks all, the cause was the low level comparison setting unchecked inside the pheriphery address of the datapoint .... sorry