Zone Control API > BS2_SetAntiPassbackZone


BS2_SetAntiPassbackZone

Configures an Anti Passback zone.

Declaration

#include "BS_API.h"
 
int BS2_SetAntiPassbackZone(void* context, uint32_t deviceId, BS2AntiPassbackZone* zones, uint32_t zoneCount);

Parameter

CAUTION
When the Anti Passback zone ID and door ID is equivalent, this is considered as a Anti Passback zone based on the door. Therefore, when the door gets removed, the zone information could get removed also.

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.

See Also

BS2_GetAntiPassbackZone
BS2_GetAllAntiPassbackZone
BS2_GetAntiPassbackZoneStatus
BS2_GetAllAntiPassbackZoneStatus
BS2_SetAntiPassbackZoneAlarm
BS2_RemoveAntiPassbackZone
BS2_RemoveAllAntiPassbackZone
BS2_ClearAntiPassbackZoneStatus
BS2_ClearAllAntiPassbackZoneStatus