Range

Function

This API is used to get Access Control > Door Parameters parameter range.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel"CH1"…"CHx"string arrayThe channels supported by the device.

Sample:

POST /API/AccessControl/DoorParameters/Range HTTP/1.1
{
    "version": "1.0",
    "data": {}
}

Response Message

Parameter Description

Table 2
ParameterRangeTypeDescription
channel_infoobjectTotal channel information see Table 3.
channel_maxintThe maximum number of channels.
Table 3
ParameterRangeTypeDescription
CH1…CHxobjectSee Table 4
Table 4
ParameterRangeTypeDescription
door_namestringDoor Name
open_duration1-255unsigned intDoor Open Duration
disability_card_open_duration5-255unsigned intDisability Card Open Duration
door_open_timeout_alarm1-255unsigned intDoor Open Timeout Alarm
door_magnetic_sensor_type"Normal Close""Normal Open"stringDoor Magnetic Sensor Type
exit_button_type"Normal Close""Normal Open"stringExit Button Type
door_lock_status"Normal Close""Normal Open"stringDoor Lock Status

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {
        "channel_max": 1,
        "channel_info": {
            "type": "object",
            "items": {"CH1": {
                "type": "object",
                "items": {
                    "door_name": {
                        "type": "string",
                        "min_len": 0,
                        "max_len": 127
                    },
                    "open_duration": {
                        "type": "uint32",
                        "mode": "r",
                        "min": 1,
                        "max": 255,
                        "default_value": 5
                    },
                    "disability_card_open_duration": {
                        "type": "uint32",
                        "mode": "r",
                        "min": 5,
                        "max": 255,
                        "default_value": 20
                    },
                    "door_open_timeout_alarm": {
                        "type": "uint32",
                        "mode": "r",
                        "min": 1,
                        "max": 255,
                        "default_value": 30
                    },
                    "door_magnetic_sensor_type": {
                        "type": "string",
                        "items": [
                            "Normal Close",
                            "Normal Open"
                        ]
                    },
                    "exit_button_type": {
                        "type": "string",
                        "items": [
                            "Normal Close",
                            "Normal Open"
                        ]
                    },
                    "door_lock_status": {
                        "type": "string",
                        "items": [
                            "Normal Close",
                            "Normal Open"
                        ]
                    }
                }
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.