[ENG] 17.3. [DKSF 70/71.6 IU] Controlling Temperature Sensors

An interface of URL-encoded commands in a device can be used to integrate with web applications without using an SNMP protocol. Through the interface of URL-encoded commands, it is possible to control temperature sensors.

Status Request

http://192.168.0.100/thermo.cgi?tN

where:

N  is a number of a temperature sensor, specified after ?t.

Returned Values

An error in a request (incorrect format, wrong number of a sensor):

thermo_result('error')

Successful completion of a command:

thermo_result('ok', 36, 2);

where:

The first argument is always 'ok' ('error' if a request is faulty).

The second argument is a current temperature.

The third argument is status of a sensor

 a sensor is not connected or failed

 a temperature is below normal

 a temperature is normal

 a temperature is above normal

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