How does one implement the equivalent of system.tag.readBlocking with the sdk? I see it implemented in AbstractTagUtilities, but GatewayTagManager does not extend that class. I don’t see an example for it on GitHub at first glance.
All tag managers have the writeAsync() method. Pretty sure that’s what you need.
This page has an example which can be modified:
https://docs.inductiveautomation.com/display/SE/Read+and+Write+Tags
It starts with this, which I don’t believe is supported by the SDK:
IgnitionGateway context = IgnitionGateway.get();
1 Like
Not necessary in the SDK, as modules are provided with the context during setup.
For future reference: readAsync returns CompletableFuture < T >, which implements a blocking get() amongst other methods of returning the value.
1 Like