Configurações de Porta
Definir Antipassback

Definir Antipassback

Por meio da chamada abaixo é possível definir o Antipassback do dispositivo.

Requisição - GET

http://192.168.1.201/cgi-bin/configManager.cgi?action=setConfig&OpenDoorRoute[0].DoorList[0].Doors[0].ReaderID=1&OpenDoorRoute[0].DoorList[0].ResetTime=0&OpenDoorRoute[0].DoorList[1].Doors[0].ReaderID=2&OpenDoorRoute[0].DoorList[1].ResetTime=0&OpenDoorRoute[0].ResetTime=0&OpenDoorRoute[0].TimeSections=0

paramtypedescription
setConfig *StringComando de configuração
ReaderID *StringID do leitor
TimeSectionsStringZona de tempo
ResetTimeStringTempo de reset, máximo: 1420 segundos

Exemplo de Retorno - text/plain

OK

Exemplos

import requests
 
device_ip = '192.168.1.201'
username = 'admin'
password = 'acesso1234'
 
url = "http://{}/cgi-bin/configManager.cgi?action=setConfig&OpenDoorRoute[0].DoorList[0].Doors[0].ReaderID=1&OpenDoorRoute[0].DoorList[0].ResetTime=0&OpenDoorRoute[0].DoorList[1].Doors[0].ReaderID=2&OpenDoorRoute[0].DoorList[1].ResetTime=0&OpenDoorRoute[0].ResetTime=0&OpenDoorRoute[0].TimeSections=0".format(
                            str(device_ip),
                        )
 
digest_auth = requests.auth.HTTPDigestAuth(username, password)
rval = requests.get(url, auth=requests.auth.HTTPDigestAuth(username, password), stream=True, timeout=60, verify=False)
 
print(rval.text)