Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:mervis-ide:65-webpanel:webpanel-api [2017/06/21 13:24] m.chlupac [Request] |
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 09:44] m.chlupac |
||
---|---|---|---|
Line 7: | Line 7: | ||
==== Request ==== | ==== Request ==== | ||
- | Data | ||
<code js>{ | <code js>{ | ||
- | ver : 1,// | + | |
- | //optional - only for non-authenticated access | + | //optional - only for non-authenticated access |
- | // | + | // |
- | c: {u: “karel”, | + | c: {u: “karel”, |
- | + | ||
}</ | }</ | ||
Line 29: | Line 27: | ||
==== Request ==== | ==== Request ==== | ||
- | Data | + | **URL:** '' |
<code js>{ | <code js>{ | ||
ver : 1,//version | ver : 1,//version | ||
Line 42: | Line 41: | ||
* variable ID is unique string - in future, may be different for different platforms/ | * variable ID is unique string - in future, may be different for different platforms/ | ||
- | === Variable specification for RT2 === | + | === Variable specification for Mervis RT === |
* svc - protocol | * svc - protocol | ||
Line 52: | Line 51: | ||
the POST body can be: | the POST body can be: | ||
- | - JSON string (AngularJS default behaviour): | + | - JSON string (AngularJS default behaviour): <code js> |
- | <code js> | + | - converted into POST parameters (jQuery default behaviour):< |
- | - converted into POST parameters (jQuery default behaviour): | + | |
- | < | + | |
The best solution would be to support both versions. Easier is now the JSON string. | The best solution would be to support both versions. Easier is now the JSON string. | ||
Line 62: | Line 59: | ||
<code js>{ | <code js>{ | ||
- | ver : 1,// | + | ver : 1,// |
- | code: | + | |
- | msg: “”, //error message | + | |
v: [{ | v: [{ | ||
- | | + | |
- | | + | |
- | | + | |
- | t: 654654321654 //timestamp UTC, milliseconds since 1970 | + | |
} | } | ||
] | ] | ||
Line 76: | Line 73: | ||
=== Encoding of values - version 1 === | === Encoding of values - version 1 === | ||
- | Ea | + | |
===== Command Request ===== | ===== Command Request ===== | ||
Line 130: | Line 127: | ||
<code js>{ | <code js>{ | ||
- | ver : 1,// | + | |
- | platform: “uPLC”, | + | platform: “uPLC”, |
- | maxVariablesInRequest: | + | maxVariablesInRequest: |
- | maxRequestSize: | + | maxRequestSize: |
- | preferedLanguage: | + | preferedLanguage: |
}</ | }</ | ||