Hi,
I think that you need to use suitable derived HistoryReadDetails class, for example
ReadRawModifiedDetails. I have something like this In my (working code):
HistoryReadDetails hrd = new ReadRawModifiedDetails(false, begin, end, uint(0), false);
CompletableFuture<HistoryReadResponse> resp = client.historyRead(hrd, TimestampsToReturn.Server, false, readIds);
Ari S.
From: milo-dev-bounces@xxxxxxxxxxx [mailto:milo-dev-bounces@xxxxxxxxxxx]
On Behalf Of george.ray
Sent: 6. huhtikuuta 2017 6:40
To: milo developer discussions <milo-dev@xxxxxxxxxxx>; Kevin Herron <kevinherron@xxxxxxxxx>
Subject: [milo-dev] 回复: Does client/server SDK of Eclipse Milo support Security/AE/HDA
function
About HDA question, tesing code:
List<NodeId> nodeIds = ImmutableList.of(new NodeId(2, "ChannelTest.DeviceTest.Tag190")); List<HistoryReadValueId> nodesToRead = new ArrayList<HistoryReadValueId>(); HistoryReadValueId valueId = new HistoryReadValueId(nodeIds.get(0), null, null, null); nodesToRead.add(valueId); CompletableFuture<HistoryReadResponse> historyResp = client.historyRead(new HistoryReadDetails(), TimestampsToReturn.Both, true, nodesToRead);
But can't read history data.
------------------------------------------------------------------
发送时间:2017年4月6日(星期四)
11:09
主 题:回复:[milo-dev] Does client/server SDK of Eclipse Milo support Security/AE/HDA
function
I want to test AE with Milo client and KEP Server, and have some API questions.
For example, How to write the 4th parameter "_continuationPoint" of HistoryReadValueID constructor?
Does "client.historyRead" method need a monitor? The invoke will be block when reading?
------------------------------------------------------------------
发送时间:2017年4月1日(星期六)
06:15
主 题:Re: [milo-dev] Does client/server SDK of Eclipse Milo support Security/AE/HDA
function
The client supports everything. There's no examples for subscribing to alarms or calling history, but it's really just a matter of putting together the right request objects and invoking the service. Part 4 of the spec can help with this.
The server does not yet support events (so no AE). It does have stubs for implementing the history service calls (as of a few days ago), but that's up to your implementation to fulfill if you choose to support it.
|