Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 09:57] m.chlupac |
en:mervis-ide:65-webpanel:webpanel-api [2019/05/21 11:13] (current) |
||
---|---|---|---|
Line 9: | Line 9: | ||
**URL:** '' | **URL:** '' | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
//optional - only for non-authenticated access | //optional - only for non-authenticated access | ||
Line 18: | Line 18: | ||
==== Response ==== | ==== Response ==== | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
code: " | code: " | ||
Line 31: | Line 31: | ||
**URL:** '' | **URL:** '' | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
//optional - only for non-authenticated access | //optional - only for non-authenticated access | ||
Line 42: | Line 42: | ||
* 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/ | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code javascript> | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | </ | ||
+ | |||
=== Variable specification for Mervis RT === | === Variable specification for Mervis RT === | ||
Line 53: | Line 68: | ||
the POST body can be: | the POST body can be: | ||
- | - JSON string (AngularJS default behaviour): < | + | - JSON string (AngularJS default behaviour): < |
- converted into POST parameters (jQuery default behaviour):< | - converted into POST parameters (jQuery default behaviour):< | ||
Line 59: | Line 74: | ||
==== Response ==== | ==== Response ==== | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
code: " | code: " | ||
Line 75: | Line 90: | ||
* Each value is transmitted as a big endian binary representation of the specified variable (and its offset and length). | * Each value is transmitted as a big endian binary representation of the specified variable (and its offset and length). | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code javascript> | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | : " | ||
+ | " | ||
+ | }, { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | ] | ||
+ | }</ | ||
+ | |||
===== Command Request ===== | ===== Command Request ===== | ||
Line 82: | Line 124: | ||
**URL:** '' | **URL:** '' | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
// | // | ||
Line 110: | Line 152: | ||
**URL:** '' | **URL:** '' | ||
- | < | + | < |
ver : 1,//version | ver : 1,//version | ||
// | // |