Write variable when user change value in HMI

hi

I have to transform my “read only driver” to “read write driver”.
That is, I wrote a driver, that reads variable from a custom tcp protocol, and puts the
values inside the node map “((DataNode) node).setValue(inVar.getValue());” I used the
weather sample as model, so I extends NodeMapDriver and on connect method I refresh the
vars values.

Now the variables have to be ReadWrite so, when the user change the value on HMI I have to
write the change on tcp.

The question is, can the driver be notified when the user change a variable value?

Thanks,
Stefano

If you’re using NodeMapDriver the easiest thing to do is probably to override the call to createWriteRequest(List<? extends Writeitem>) and return your own Request object that implements your write logic.