Range

Function

This API is used to get Access Control > Wiegand Settings parameter range.

Request Message

Parameter Description

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

Sample:

POST /API/AccessControl/WiegandSettings/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
enable_wiegandboolEnable Wiegand
wiegand_direction"Input"stringWiegand Direction

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": {
                    "enable_wiegand": {"type": "bool"},
                    "wiegand_direction": {
                        "type": "string",
                        "items": ["Input"]
                    }
                }
            }}
        }
    }
}

Error Code

See Response Messages Body and Common error_code for more information.