TODO\[DRAFT\]
The SiteController module da_rest_client is able to perform download actions with a configuration like
Code Block | ||
---|---|---|
| ||
...
<action action_id="download_memodata" device_id="rest_test">
<commands>
<command command_id="download">download(<'uri to request'> method=<'get'/'post'> timeout=<positive floating point number>)</command>
</commands>
</action>
... |
The action_id
and the command_id
can be freely chosen. The device_id
must be equal to the configured da_rest_client device in the same sensor configuration.
The function download
is currently the only choice of an action executed by da_rest_client. The parameter <'uri to request'> must be set, for example like '/fcgi/control/memodata_download'. The parameter method
is by default 'get' and the parameter timeout
is by default 5 (seconds). In case of default value usage these both parameters as in the following example:
Code Block | ||
---|---|---|
| ||
<command command_id="download">download('/fcgi/control/memodata_download')</command> |