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);


  • [In] context : Context
  • [In] ptrCheckGlobalAPBViolation : Callback function called for global determination when Anti Passback alarm occurs

To use Global Anti Passback service, BS2AuthConfig useGloable APB should be set to True.

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