Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:mervis-scada:50-api [2020/04/07 09:51]
m.chlupac [api/get/values?format=xml]
en:mervis-scada:50-api [2020/04/07 09:54]
m.chlupac [api/get/values]
Line 213: Line 213:
 <executeActionsResponse xmlns:r="http://dev.rcware.eu/serialization/references" code="Ok" message="OK" xmlns="http://dev.rcware.eu/scada/error-reporting" /></code> <executeActionsResponse xmlns:r="http://dev.rcware.eu/serialization/references" code="Ok" message="OK" xmlns="http://dev.rcware.eu/scada/error-reporting" /></code>
  
-====api/get/values?format=xml====+====api/get/values====
  
-The right way how to retrieve current values of data points (property "Output" which is usually what you want).+The right way how to retrieve current values of data points (property "Output" which is usually what you want) from one or multiple projects.
  
 **Request** **Request**
Line 225: Line 225:
 { {
  "cred": {  "cred": {
-  "t": "2:7cfa369a-8a90-4f8b-a962-df1ef8d62d8c"+  "t": "xxxxxx//token
  },  },
  "propNamesToSerialize": ["Output"],  "propNamesToSerialize": ["Output"],
Line 232: Line 232:
  "serverState": null,  "serverState": null,
  "dps": [{  "dps": [{
-   "projId": "ba1a92f7-f213-4a72-90e4-f7142b50274a", +   "projId": "ba1a92f7-f213-4a72-90e4-f7142b50274b", 
-   "dpIds": ["e089dde2-a097-4e0d-8012-c8cf3dc62695", "e089dde2-a097-4e0d-8012-c8cf3dc62696"]+   "dpIds": ["e089dde2-a097-4e0d-8012-c8cf3dc62694", "1089dde2-a097-4e0d-8012-c8cf3dc62696"]
   }   }
  ]  ]
Line 245: Line 245:
 <values xmlns:r="http://dev.rcware.eu/serialization/references" nextOffset="-1" serverTime="2020-04-07T07:46:34.850422Z" xmlns:n1="http://dev.rcware.eu/scada/basic-props" xmlns="http://dev.rcware.eu/scada/datapoints"> <values xmlns:r="http://dev.rcware.eu/serialization/references" nextOffset="-1" serverTime="2020-04-07T07:46:34.850422Z" xmlns:n1="http://dev.rcware.eu/scada/basic-props" xmlns="http://dev.rcware.eu/scada/datapoints">
  <vals>  <vals>
-  <v projId="ba1a92f7-f213-4a72-90e4-f7142b50274a" dataVersion="637217783110000000" serverTime="2020-04-07T07:46:34.850422Z">+  <v projId="ba1a92f7-f213-4a72-90e4-f7142b50274b" dataVersion="637217783110000000" serverTime="2020-04-07T07:46:34.850422Z">
    <dps>    <dps>
-    <d id="e089dde2-a097-4e0d-8012-c8cf3dc62695" serAlr="true">+    <d id="e089dde2-a097-4e0d-8012-c8cf3dc62694" serAlr="true">
      <props>      <props>
       <p n="Output" t="2020-04-07T07:43:42.1000676Z" q="Bad" r:type="177e726a-3180-4152-bef2-6254e7055e1f">       <p n="Output" t="2020-04-07T07:43:42.1000676Z" q="Bad" r:type="177e726a-3180-4152-bef2-6254e7055e1f">
Line 254: Line 254:
      </props>      </props>
     </d>     </d>
-    <d id="e089dde2-a097-4e0d-8012-c8cf3dc62696" serAlr="true">+    <d id="1089dde2-a097-4e0d-8012-c8cf3dc62696" serAlr="true">
      <props>      <props>
       <p n="Output" t="2020-04-07T07:45:00.2408399Z" q="Good" r:type="b133774d-21ce-42b6-add3-57c012079c55">       <p n="Output" t="2020-04-07T07:45:00.2408399Z" q="Good" r:type="b133774d-21ce-42b6-add3-57c012079c55">
  • © Energocentrum Plus, s.r.o. 2017 - 2024