|
@@ -187,7 +187,9 @@ public class OpcUaUtil {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("label", nd.getBrowseName().getName());
|
|
|
jsonObject.put("nodeId", nd.getNodeId());
|
|
|
- jsonObject.put("nodeIndex", nd.getNodeId().getNamespaceIndex());
|
|
|
+// nd.getNodeId().getNamespaceIndex()
|
|
|
+// jsonObject.put("nodeIndex", nd.getNodeId().getNamespaceIndex());
|
|
|
+ jsonObject.put("nodeIndex", nd.getNodeId().getNamespaceIndex().intValue());
|
|
|
jsonObject.put("itemReadName", nd.getNodeId().getIdentifier());
|
|
|
jsonObject.put("dataType", nd.getNodeId().getType());
|
|
|
// jsonObject.put("value", client.readValue(0.0, TimestampsToReturn.Both, nd.getNodeId()).get());
|