gpt4 book ai didi

java - eclipse 米洛 : How to read history data?

转载 作者:行者123 更新时间:2023-11-30 10:27:48 25 4
gpt4 key购买 nike

我试过将数据写入 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 作为本地服务器)还是我做错了什么?

最佳答案

Milo 服务器 SDK 支持实现历史服务,但不会为您实现它们。

您需要找到一个支持和实现历史的服务器来开发和测试您的客户端。

关于java - eclipse 米洛 : How to read history data?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45085099/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com