I can set the value for a node by calling UA_Server_writeValue(server, *node, var) wherre <var> is a UA_Variant.
How do I set the status code for that node?
For example, somebody when somebody disconnects a sensor, I want to set the status to 'notconnected' for all of the nodes that contain data from that sensor. I might also like to change the hasValue flag for that node from true to false, how would I do that?
Is UA_Server_write(server, wvalue) the correct way to do that?