\[DRAFT\]
The SiteController module da_rest_client is able to perform download actions with a configuration like
... <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 the action command can be configured as in this example:
<command command_id="download">download('/fcgi/control/memodata_download')</command>
In case of usage with all parameters the action command can be configured as in this example:
<command command_id="download">download('/rest/memodata_download.php', method='post', timeout=3)</command>