User`s manual

60
Aliases
XML RPC requests can be abstracted using aliases. To use an alias which has been
defined, use the “alias” type. Alias replacements are performed in place.
Example
If there was an alias named “EXAMPLE_ALIAS”
defined with the following XML content:
<param1>value</param1>
<param2>value</param2>
<param3>value</param3>
The following XML:
<request_name>
<EXAMPLE_ALIAS type=”alias” / >
</request_name>
Would then become:
<request_name>
<param1>value</param1>
<param2>value</param2>
<param3>value</param3>
</request_name>
The main value of aliasing is in generalizing parameters to commands which are sent to
a large number of devices.
Example
If there are two gateways with the alias “THERMOSTAT” defined:
Gateway 1:
<destination_address type=”MAC”>00:11:22:33:44:55:66:77
</destination_address>
Gateway 2:
<destination_address type=”MAC”>00:11:22:33:44:AA:BB:CC
</destination_address>