Unsolved OPC UA attributeUpdated subscription
-
Hello there,
I am using Qt 5.11.1 OPC UA library for interfacing with an OPC UA server. I have came across this example for values changes subscription: https://doc.qt.io/QtOPCUA/qtopcua-waterpump-example.htmlI see a problem here. The emited signal, which is:
void attributeUpdated(QOpcUa::NodeAttribute attr, QVariant value);
It does inform using one of the parameters, which node caused the value change. Thus, If I need to watch 100 parameters, I need to create 100 signal-slot connections with 100 different slots, like in the example... Is there something I am missing here? I would appreciate all help!
-
@Bremenpl said in OPC UA attributeUpdated subscription:
It does inform using one of the parameters, which node caused the value change
It does not as far as I can see. It informs about the attribute changed and the value, not which node it was.
-
I have solved the problem thanks to lamba expressions using this example: https://doc.qt.io/QtOPCUA/qopcuanode.html#example