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 [2019/03/13 15:12]
m.chlupac [setDataPointValue]
en:mervis-scada:50-api [2019/07/10 11:38]
m.chlupac
Line 32: Line 32:
  
 ===== Example ===== ===== Example =====
 +
 +====api/checkCredentials====
 +
 +**Request**
 +
 +   * URL: /api/checkCredentials?format=xml
 +   * Method: POST
 +
 +**Request**
 +
 +<code javascript>
 +{"cred":{"n":"demo","p":"demo"}}
 +</code>
 +
 +**Response**
 +
 +<code xml>
 +<?xml version="1.0" encoding="utf-8"?>
 +<checkCredentialsResult xmlns:r="http://dev.rcware.eu/serialization/references" d="GlobalDomain" l="demo" t="2:85be00d3-5875-4dec-a9b4-c98e2ff2acbe" xmlns="http://dev.rcware.eu/auth" />
 +</code>
 +
 +  * You can use the received token **t** in subsequent API calls.
  
 ====api/get/history==== ====api/get/history====
Line 163: Line 185:
 Sets data point value using a button (primary the INIT button). Only numerical values are supported. Parameter buttonName is not mandatory. Value 'INIT' is used if buttonName is not defined. Sets data point value using a button (primary the INIT button). Only numerical values are supported. Parameter buttonName is not mandatory. Value 'INIT' is used if buttonName is not defined.
  
 +{{ :en:mervis-scada:init.png?direct&800 |}}
  
 **Example:** **Example:**
  • © Energocentrum Plus, s.r.o. 2017 - 2024