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/15 14:51] yjjung |
en:zone_control_api [2018/03/20 15:25] yjjung |
||
---|---|---|---|
Line 16: | Line 16: | ||
* [[BS2_ClearAntiPassbackZoneStatus]]: Updates selected users to be not violating against the Anti Passback zone rule. | * [[BS2_ClearAntiPassbackZoneStatus]]: Updates selected users to be not violating against the Anti Passback zone rule. | ||
* [[BS2_ClearAllAntiPassbackZoneStatus]]: Updates all users to be not violating against the Anti Passback zone rule. | * [[BS2_ClearAllAntiPassbackZoneStatus]]: Updates all users to be not violating against the Anti Passback zone rule. | ||
- | + | * [[BS2_SetCheckGlobalAPBViolationHandler]]: Registers callback function for global determination when an APB violation alarm occurs. | |
- | ---- | + | * [[BS2_CheckGlobalAPBViolation]]: Transfers Global APB results to the device. |
==== Timed Anti Passback Zone ==== | ==== Timed Anti Passback Zone ==== | ||
To prevent a user from re-entering in a certain time, a Timed Anti Passback zone can be used. This zone offers two options(soft, hard) as same as the Anti Passback zone. | To prevent a user from re-entering in a certain time, a Timed Anti Passback zone can be used. This zone offers two options(soft, hard) as same as the Anti Passback zone. | ||
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 ====== |