Zone Control API > BS2_SetCheckGlobalAPBViolationHandler
[+ 2.5.0] Registers callback function for global determination when an APB violation alarm occurs.
#include "BS_API.h" int BS2_SetCheckGlobalAPBViolationHandler(void* context, OnCheckGlobalAPBViolation ptrCheckGlobalAPBViolation);
context
: ContextptrCheckGlobalAPBViolation
: Callback function called for global determination when Anti Passback alarm occurs
NOTE
To use Global Anti Passback service, BS2AuthConfig useGloable APB should be set to True.
If successfully done, BS_SDK_SUCCESS
will be returned.
If there is an error, the corresponding error code will be returned.