Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze Obě strany příští revize
cs:mervis-scada:50-api [2018/11/02 07:33]
m.chlupac
cs:mervis-scada:50-api [2018/11/06 10:20]
m.chlupac
Řádek 80: Řádek 80:
  
  
-</code> 
- 
-====api/v2/get/history==== 
- 
-**Request** 
- 
-   * URL: /api/v2/get/history?format=xml 
-   * Method: POST 
- 
-<code javascript> 
-{   
-   "data":{   
-      "cred":{   
-         "n":"demo",  //username 
-         "p":"demo",  //password 
-         "pe":0 
-      }, 
-      "projId":"5abf8ca0-94ba-48df-8d3c-7ebe87a12fd0", 
-      "from":"/Date(1540388023926)/", //UTC, Unixtime milliseconds 
-      "to":"/Date(1540389034926)/",   //UTC, Unixtime milliseconds 
-      "offset":0,                     //offset-count pair for multiple variables 
-      "variableOffset":0, 
-      "count":5000,            
-      "historyState":"", 
-      "providersDps":[   
-         {   
-            "m_Item1":"689e32fa-24a2-448e-9374-6158e6e6cb15", //DB Provider ID - don't change it 
-            "m_Item2":"62cf4083-31ed-4bc1-be25-044ba837a9f0"  //Datapoint ID - different for each datapoint 
-         }, 
-         {   
-            "m_Item1":"689e32fa-24a2-448e-9374-6158e6e6cb15", //DB Provider ID - don't change it 
-            "m_Item2":"2ec7ddcb-17b5-4a6e-81da-a4b6e6f6fb11"  //Datapoint ID - different for each datapoint 
-         } 
-      ] 
-   } 
-} 
-</code> 
- 
-**Response** 
- 
-<code xml> 
-<?xml version="1.0" encoding="utf-8"?> 
-<globalResponse xmlns:r="http://dev.rcware.eu/serialization/references" xmlns:n1="http://dev.rcware.eu/scada/getHistoryV2/response" xmlns:n2="http://dev.rcware.eu/scada/datapoints" xmlns:n3="http://dev.rcware.eu/scada/history" xmlns:n4="http://dev.rcware.eu/scada/basic-props" xmlns="http://dev.rcware.eu/core/globalRequestResponse"> 
-    <result code="0" codeTxt="Ok" desc="" dataType="" /> 
-    <data n1:count="2" n1:nextOffset="-1" n1:nextVariableOffset="-1" n1:nextHistoryState="" r:type="d70d8bcb-04a7-4bca-a626-4f6dd466c6e0"> 
-        <n1:providerHistories> 
-            <n1:providerHistories providerId="689e32fa-24a2-448e-9374-6158e6e6cb15"> 
-                <n1:dpHistories> 
-                    <n2:pl> 
-                        <n2:p n="Output" u="hod" r:type="b133774d-21ce-42b6-add3-57c012079c55"> 
-                            <n3:hist projId="5abf8ca0-94ba-48df-8d3c-7ebe87a12fd0" dpId="2ec7ddcb-17b5-4a6e-81da-a4b6e6f6fb11" propName="Output" interval="PT3M" historyState="" nextValOfs="-1"> 
-                                <n3:errMsg></n3:errMsg> 
-                                <n3:vals> 
-                                    <n3:hv ts="2018-10-23T16:27:41.5932104Z" gt="2018-10-25T09:15:42.1992342Z"> 
-                                        <n4:v>11979</n4:v> 
-                                    </n3:hv> 
-                                </n3:vals> 
-                            </n3:hist> 
-                        </n2:p> 
-                        <n2:p n="Output" u="hod" r:type="b133774d-21ce-42b6-add3-57c012079c55"> 
-                            <n3:hist projId="5abf8ca0-94ba-48df-8d3c-7ebe87a12fd0" dpId="62cf4083-31ed-4bc1-be25-044ba837a9f0" propName="Output" interval="PT3M" historyState="" nextValOfs="-1"> 
-                                <n3:errMsg></n3:errMsg> 
-                                <n3:vals> 
-                                    <n3:hv ts="2018-10-24T12:48:42.1926956Z" gt="2018-10-24T15:06:41.9453803Z"> 
-                                        <n4:v>12702</n4:v> 
-                                    </n3:hv> 
-                                </n3:vals> 
-                            </n3:hist> 
-                        </n2:p> 
-                    </n2:pl> 
-                </n1:dpHistories> 
-            </n1:providerHistories> 
-        </n1:providerHistories> 
-    </data> 
-</globalResponse> 
 </code> </code>
  
  
  • © Energocentrum Plus, s.r.o. 2017 - 2024