[ENG] 17.6. [DKSF 70/71.6 IU] Controlling a Transceiver of IR Commands

An interface of URL-encoded commands in a device can be used to integrate with web applications without using an SNMP protocol. It is possible to control an IR command transceiver through the interface of URL-encoded commands.

Sending an IR Command

http://192.168.0.100/ir.cgi?play=N

where:

N  is a number of a command.

Returned Values

ir_result('ok')

ir_result('error')

An error is returned only if a request format is incorrect or a command number is wrong. Errors of the module IRC-TRv2 are not checked when a response is formulated.

Authorization

To add a login and password to the structure of a URL-encoded command, it is possible to use the next scheme:

  • http://<username>:<password>@<host>:<port>/<URL‐path>?<parameters>

where:

<username>:<password> – are credentials for authorization in a device web interface;

<host>  is an IP address of a device;

<port>  is a port of an HTTP server;

<URL‐path>?<parameters>  is a URL-encoded command