ClientFactory clientFactory = new ClientFactory();
Client client = clientFactory.createClient("sys/tg_test/1");
Map.Entry pair = client.readAttribute("long_scalar_w");
System.out.print(pair.getKey().toString() + "@" + pair.getValue().getValue());
This will produce smth like: 12345@13338780292
@param attrName attribute name
@param < T>
@return (Value, Timestamp) pair
@throws ClientException
|
|
|
|
|
|
|
|