Read historical data from an OPC UA server using the HistoryRead service (Historical Access)

domain: iot · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Confirm the target node supports historical data via its AccessLevel attribute (historical values) or EventNotifier attribute (historical events)
  2. Build the request: set historyReadDetails to a ReadRawModifiedDetails structure with startTime, endTime, and/or numValuesPerNode (at least two of these three are required), plus isReadModified=false to read raw values and returnBounds as needed
  3. Set timestampsToReturn (must not be NEITHER) and releaseContinuationPoints=false for the initial call
  4. Populate nodesToRead[] with one HistoryReadValueId per node (nodeId, optional indexRange) and invoke the HistoryRead service
  5. Read results[] in the response — each entry has a statusCode, the returned historyData, and a continuationPoint if more data remains
  6. If a continuationPoint is returned, call HistoryRead again passing it to page through the rest, then call once more with releaseContinuationPoints=true when finished to free server resources

Known gotchas

Related routes

Browse an OPC UA server's address space and subscribe to data changes from a client
reference.opcfoundation.org · 6 steps · unrated
Read a node value from an OPC UA server using the open62541 C client
open62541.org · 6 steps · unrated
Read current point values from a Haystack server via the read op
project-haystack.org · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans