Writing to a tag via system.opc.write* through Remote Tag Providers

I want to be able to write to OPC tags via system.opc.write* functions which is easy when you have a single gateway, however to write a wrapper function that allows for more complex gateway networks with remote tag providers (RTP) (and perhaps nested remote tag providers) is significantly more complex.

I've hacked this before by reading the remote tag provider details from the internal config db and this works for a gateway with an RTP pointing directly to a TP, but if there are any hops to other GWs it would fail (assuming this is even a thing). It's also not nice reading from the config db.. Is there a better way to do this?

See the reflection I use in my tag report utility on the exchange.

1 Like