Интерфейс An interface of URL-encoded команд в устройстве может быть использован для интеграции с web-приложениями без использования протокола SNMP. Через интерфейс URL-encoded команд доступно управление датчиком дыма.
...
commands in a device can be used for integration with web applications without using an SNMP protocol. Through the interface of URL-encoded commands, it is possible to manage a smoke sensor.
Status Request
Info | ||
---|---|---|
| ||
http://192.168.0.100/curdet.cgi |
...
Returned Values
Info | ||
---|---|---|
| ||
curdet_result('ok', 0, '') |
гдеwhere:
Первый аргумент: всегда The first argument: is always 'ok' (ошибка невозможнаerror is impossible).
Второй аргумент: числовое значение статуса.
Третий аргумент: текстовое значение статусаThe second argument: is a numeric value of a status.
The third argument: is a textual value of a status.
0 – Норма Normal
1 – Тревога – Alert
2 – Обрыв Break
3 – Короткое замыкание Short circuit
4 – Обесточен Deenergized
Сброс датчика
...
Sensor Reset
A short-term withdrawal of power from the current loop is made:
Info | ||
---|---|---|
| ||
http://192.168.0.100/curdet.cgi?reset |
...
Returned Values
Info | ||
---|---|---|
| ||
relay_result('ok') |
Ошибка может возвращаться при неправильных формате или тексте запросаAn error can be returned when a format or a text of a request are incorrect.