Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
en:zone_control_api [2018/03/20 15:21] yjjung [Anti Passback Zone] |
en:zone_control_api [2018/10/30 17:34] yjjung [BS2AntiPassbackZone] |
||
---|---|---|---|
Line 106: | Line 106: | ||
\\ | \\ | ||
---- | ---- | ||
+ | ==== Callback Function ==== | ||
+ | ==== OnCheckGlobalAPBViolation ==== | ||
+ | Callback function for global determination when an APB violation alarm occurs. | ||
+ | <code cpp> | ||
+ | typedef void (*OnCheckGlobalAPBViolation)(uint32_t deviceId, uint16_t seq, const char* userID_1, const char* userID_2, bool isDualAuth); | ||
+ | </code> | ||
+ | \\ | ||
+ | 1. //deviceId// \\ | ||
+ | Device ID \\ \\ | ||
+ | 2. //seq// \\ | ||
+ | Packet sequence number \\ \\ | ||
+ | 3. //userID_1// \\ | ||
+ | User ID 1 \\ \\ | ||
+ | 4. //userID_2// \\ | ||
+ | User ID 2 \\ \\ | ||
+ | 5. //isDualAuth// \\ | ||
+ | Indicates whether to Dual authentication. \\ \\ | ||
===== Structure ====== | ===== Structure ====== | ||
Line 234: | Line 251: | ||
Reserved space. \\ \\ | Reserved space. \\ \\ | ||
9. //resetDuration// \\ | 9. //resetDuration// \\ | ||
- | The time interval for initializing the users status when a user violates the APB rule. When the value is set to 0, this means that it will not initialize the status, and will be initialized only through the BioStar application. \\ \\ | + | It means the time until the APB violation status is initialized(released), unit is second. At this time, the initialization time is calculated based on the time when the last authentication succeeded. If this value is set to 0, it means not to initialize but can be initialized with BS2_ClearAntiPassbackZoneStatus. \\ \\ |
10. //alarm// \\ | 10. //alarm// \\ | ||
An alarm that will be triggered when a user violates the user APB rule, which can be configured up to 5 alarms. \\ \\ | An alarm that will be triggered when a user violates the user APB rule, which can be configured up to 5 alarms. \\ \\ |