[ENG] 17.4. [DKSF 70/71.6 IU] Controlling a Smoke Sensor (Current Sensor)

The interface of URL-encoded commands in a device can be used for the integration with web applications without using an SNMP protocol. Controlling a smoke sensor is available through the interface of URL-encoded commands

Status Request

http://192.168.0.100/curdet.cgi

Returned Values

curdet_result('ok', 0, '')

where:

The first argument is always 'ok' (error is impossible).

The second argument is the numeric value of the status.

The third argument is the textual description of a status.

 Norm

1 Alert

2  Open

3  Short circuit

4  Powered off

Sensor Reset

Short term switching off power at a current loop:

http://192.168.0.100/curdet.cgi?reset

Returned Values

relay_result('ok')
relay_result('error')

An error can be returned because of an incorrect format or a text of a request.

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