{"id":715,"date":"2020-04-29T06:09:27","date_gmt":"2020-04-29T06:09:27","guid":{"rendered":"https:\/\/bruceng.com\/dev\/?p=715"},"modified":"2020-04-29T06:09:27","modified_gmt":"2020-04-29T06:09:27","slug":"read-single-aggregate-historical-values-from-opc-ua","status":"publish","type":"post","link":"https:\/\/bruceng.com\/dev\/?p=715","title":{"rendered":"Read single aggregate historical values from OPC UA"},"content":{"rendered":"\n<p>When reading processed historical data from OPC UA server, if you don&#8217;t set processing interval, only one value will be returned.<\/p>\n\n\n\n<p>So if you use aggregation function Max from StartTime to EndTime, if you don&#8217;t specify the processing interval, it will return the maximum value from start time to end time.<\/p>\n\n\n\n<p>If you specify the processing interval to 1 hour, it will return multiple max values for each hour within StartTime to EndTime.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When reading processed historical data from OPC UA server, if you don&#8217;t set processing interval, only one value will be returned. So if you use aggregation function Max from StartTime to EndTime, if you don&#8217;t specify the processing interval, it will return the maximum value from start time to end time. If you specify the &hellip; <a href=\"https:\/\/bruceng.com\/dev\/?p=715\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Read single aggregate historical values from OPC UA&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,14],"tags":[102],"class_list":["post-715","post","type-post","status-publish","format-standard","hentry","category-problems","category-tips-and-tricks","tag-opc-ua"],"_links":{"self":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/715","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=715"}],"version-history":[{"count":1,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/715\/revisions"}],"predecessor-version":[{"id":716,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=\/wp\/v2\/posts\/715\/revisions\/716"}],"wp:attachment":[{"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bruceng.com\/dev\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}