我尝试过将数据写入Eclipse Milo服务器,并通过以下方式读取历史数据:
HistoryReadDetails hrd = new ReadRawModifiedDetails(false, DateTime.MIN_VALUE, DateTime.MIN_VALUE,UInteger.MAX,false);
TimestampsToReturn ttr = TimestampsToReturn.Both;
List<HistoryReadValueId> list = new ArrayList<>();
list.add(new HistoryReadValueId(new NodeId(2,"HelloWorld/ScalarTypes/Int32"), null, QualifiedName.NULL_VALUE,null));
HistoryReadResponse hrr = client.historyRead(hrd, ttr, true, list).get();但得到的信息如下:
HistoryReadResult{StatusCode=StatusCode{name=Bad_NotSupported, value=0x803D0000, quality=bad}, ContinuationPoint=ByteString{bytes=null}, HistoryData=ExtensionObject{encoded=null, encodingTypeId=NodeId{ns=0, id=0}}}这个特性是由Milo支持的(我也使用本地Milo作为本地服务器)还是我做错了什么?
发布于 2017-07-13 23:56:15
Milo Server SDK支持实现History服务,但不会为您实现它们。
您需要找到一个支持和实现历史记录的服务器来开发和测试您的客户端。
https://stackoverflow.com/questions/45085099
复制相似问题