When a driver is restarted, all the subscribed items have ‘Unknown’ quality until the driver is connected. They only get updated after any client executes a read on the item.
For example, i implemented a diagnostic ‘IsConnected’ tag for my driver. If this tag is subscribed, i want it to show the correct value after a restart, even before the driver is connected.
What i currently do is calling VariableNode#setValue immediately after adding the node to the NodeManager. This way, the subscriptions are updated.
Is it safe/reliable to do it this way, or is there any other method to get subscriptions updated before the driver enters the connected state for the first time?