Instead of a host connecting to the Decoder, the decoder can initiate a connection to a host, too. To enable a connection to a previously configured host (compare Settings -> Client Mode), the host sends
ENABLEHOST;<HostNum><CrLf>
To disable a previously configured host, the host sends
DISABLEHOST;<HostNum>[;<permanently>]<CrLf>
Where <HostNum> is the index of the host to enable (1 ->10).
0 as <HostNum> is also available since the availability of protocol version 2.7. If the current connection is a client mode connection, this will disable the host which is associated with the current connection. If 0 is given, the <permanently> parameter is also available. You can set it to 1 to disable auto start for this host.
If the host connection could be enabled, the decoder responds with:
ENABLEHOST;<HostNum><CrLf>
Where <HostNum> is the actual host index. (actual host index and given host index will differ if you pass 0 as <HostNum>). If the selected host is not configured or the index is out of range:
ENABLEHOST;ERROR<CrLf>
Note that after a successful call, it does not mean that the connection is already established. It just means that the configuration seems to be valid and the Decoder will try to connect to the host.
The decoder responds accordingly to a DISABLEHOST call, too.
Protocol version
Available since protocol version 1.5
Example
← ENABLEHOST;1<CrLf> → ENABLEHOST;1<CrLf>