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
Poslední revize Obě strany příští revize
cs:mervis-scada:50-api [2021/04/15 10:34]
m.chlupac [api/checkCredentials]
cs:mervis-scada:50-api [2024/04/16 11:25]
v.musilek [api/set/executeActions]
Řádek 366: Řádek 366:
  
 ====api/set/executeActions==== ====api/set/executeActions====
- 
-**Request** 
  
    * URL: /api/set/executeActions?format=xml    * URL: /api/set/executeActions?format=xml
    * Method: POST    * Method: POST
    * Content-Type: text/xml    * Content-Type: text/xml
 +
 +===DoubleValue===
 +
 +**Request**
  
 <code xml> <code xml>
Řádek 397: Řádek 399:
 <code xml><?xml version="1.0" encoding="utf-8"?> <code xml><?xml version="1.0" encoding="utf-8"?>
 <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>
 +
 +===PlanningCalendar===
 +
 +   * v requestu je atribut "val" který odkazuje na index items v definici plánovacího kalendáře
 +   * pokud je kalendář číslený místo "val" se musí použít "dval" pro double hodnoty a "ival" pro integer hodnoty
 +
 +**Request**
 +
 +<code xml>
 +<?xml version="1.0" encoding="UTF-8"?>
 +<executeActionsRequest xmlns="http://dev.rcware.eu/scada/action-defs" 
 +xmlns:n1="http://dev.rcware.eu/auth" 
 +xmlns:r="http://dev.rcware.eu/serialization/references">
 +  <n1:cred t="xxxxx"/> <!-- token -->
 +  <actionDefs projId="17d3ff08-40c1-41c0-ad6a-bad4489323c7">
 +    <actions>
 +      <actionDefItem propName="SET" dpId="396bcab1-1973-4dd9-91a9-284cdced00fb">
 +        <execParam r:type="0066EB7A-4118-4DA0-9E98-ECDE203CA945">
 +          <n2:value xmlns:n2="http://dev.rcware.eu/scada/basic-props">
 +            <n2:changes>
 +              <n2:layer name="Layer123">
 +                <n2:changes>
 +                  <n2:ch cmd="Create">
 +                    <n2:def start="2024-04-09T02:00:00.00Z" end="2024-04-09T06:00:00.00Z" state="Enabled" val="2" p="1" comment="test">
 +                      <n2:metadata/>
 +                    </n2:def>
 +                  </n2:ch>
 +                </n2:changes>
 +              </n2:layer>
 +            </n2:changes>
 +          </n2:value>
 +        </execParam>
 +      </actionDefItem>
 +    </actions>
 +  </actionDefs>
 +</executeActionsRequest></code>
 +
 +**Response**
 +
 +<code xml><?xml version="1.0" encoding="utf-8"?>
 +<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==== ====api/get/values====
  • © Energocentrum Plus, s.r.o. 2017 - 2024