Closed csmale closed 6 years ago
... next version get this
and it becomes possible to control the start and end of the history points via msg objects
Klaus, that sounds wonderful, thank you so much! I look forward to the new version.
comes with v3.0.0
Hi, Please excuse any form errors - I'm new here and new to OPC UA!
In opcua-iiot-read.js the code which handles a history-read request, starting from "case 130:" at line 88, apparently tries to set the "history start" to "yesterday" - at least that is my guess. However the calculation of node.historyStart produces a value which represents a few milliseconds after the epoch, so the request is basically "give me all the data since the beginning of time" which causes our server and the 4G connection to glow red hot for a while and then explode...
I have "hacked" a temporary solution into my installation which now gives all the data from the past 24 hours (this is good enough for my current use case):
It doesn't look like there is any way at all of influencing the start/end timestamps in the current version. A quick fix might be to use the "Max Age" parameter to create the historyEnd value.
I hope you can do something with this input. I'm sorry I don't feel confident to push the fix up to you myself, but I am still learning this game...
Kind Regards, Colin