Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:bs2_setglobalapbviolationbydooropenhandler [2020/07/28 14:52] yjjung created |
en:bs2_setglobalapbviolationbydooropenhandler [2020/07/28 15:04] (current) yjjung |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | FIXME **This page is not fully translated, yet. Please help completing the translation.**\\ //(remove this paragraph once the translation is finished)// | ||
~~NOTOC~~ | ~~NOTOC~~ | ||
Line 10: | Line 9: | ||
Generally, Global APB API [[BS2_SetCheckGlobalAPBViolationHandler]] determines access with the user authentication only. \\ | Generally, Global APB API [[BS2_SetCheckGlobalAPBViolationHandler]] determines access with the user authentication only. \\ | ||
On the other hand, Global APB By Door Open has two steps; i) User authentication ii) Actual access based on the door sensor. \\ | On the other hand, Global APB By Door Open has two steps; i) User authentication ii) Actual access based on the door sensor. \\ | ||
- | Global APB By Door Open은 사용자 인증과 출입문 센서를 기반의 실제 출입여부, 2단계로 구성됩니다.\\ | + | First, [[zone_control_api#OnCheckGlobalAPBViolationByDoorOpen]] is called after a user authentication. \\ |
- | 1차로 사용자가 인증을 시도하면, 인증 확인을 위해 [[zone_control_api#OnCheckGlobalAPBViolationByDoorOpen]]의 호출이 이루어지며,\\ | + | Second, [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen]] is called after checking the door sensor to figure out if the user actually accessed the door. \\ |
- | 2차로 출입문 센서를 통해 사용자의 실제 출입이 이루어졌는지 추가로 판단하여 [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen]]의 호출이 이루어집니다.\\ | + | The final status is updated through [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen]] |
- | 사용자의 최종상태는 [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen]]를 통해 update하면 됩니다. | + | |
\\ | \\ | ||
- | ==== 함수 ==== | + | ==== Declaration ==== |
<code cpp> | <code cpp> | ||
#include "BS_API.h" | #include "BS_API.h" | ||
Line 23: | Line 21: | ||
<callout type="info"> | <callout type="info"> | ||
- | [[zone_control_api#OnCheckGlobalAPBViolationByDoorOpen|OnCheckGlobalAPBViolationByDoorOpen 콜백함수 보기]] \\ | + | [[zone_control_api#OnCheckGlobalAPBViolationByDoorOpen|See OnCheckGlobalAPBViolationByDoorOpen Callback Function]] \\ |
- | [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen|OnUpdateGlobalAPBViolationByDoorOpen 콜백함수 보기]] | + | [[zone_control_api#OnUpdateGlobalAPBViolationByDoorOpen|See OnUpdateGlobalAPBViolationByDoorOpen Callback Function]] |
</callout> | </callout> | ||
- | ==== 파라미터 ==== | + | ==== Parameter ==== |
* [In] ''//context//'' : Context | * [In] ''//context//'' : Context | ||
- | * [In] ''//ptrCheck//'' : 안티패스백 경보가 발생했을 때 글로벌 판정을 위해 호출되는 콜백 함수 | + | * [In] ''//ptrCheck//'' : Callback function called for global determination when Anti Passback alarm occurs |
- | * [In] ''//ptrUpdate//'' : 인증된 사용자의 최종 상태를 갱신하기 위해 호출되는 콜백 함수 | + | * [In] ''//ptrUpdate//'' : Callback function called for updating status of the authenticated user. |
<WRAP indent> | <WRAP indent> | ||
<WRAP info 70%> | <WRAP info 70%> | ||
- | **참고**\\ | + | **NOTE**\\ |
- | 출입문 센서 기반의 글로벌 안티패스백 서비스를 이용하기 위해서는 [[configuration api#BS2AuthConfig|BS2AuthConfig]]의 useGlobalAPB가 true로, \\ | + | To use Global Anti Passback service, set [[configuration api#BS2AuthConfig|BS2AuthConfig]] useGlobalAPB = true, \\ |
- | [[door_control_api#BS2DoorSensor|BS2DoorSensor]]의 apbUseDoorSensor가 true 설정되어야 합니다. | + | and [[door_control_api#BS2DoorSensor|BS2DoorSensor]] apbUseDoorSensor = true. |
</WRAP> | </WRAP> | ||
</WRAP> | </WRAP> | ||
- | ==== 반환값 ==== | + | ==== Return Value ==== |
- | 성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다. | + | If successfully done, ''BS_SDK_SUCCESS'' will be returned. \\ |
- | ==== 함께 보기 ==== | + | If there is an error, the corresponding error code will be returned. |
+ | ==== See Also ==== | ||
[[BS2_CheckGlobalAPBViolationByDoorOpen]] | [[BS2_CheckGlobalAPBViolationByDoorOpen]] | ||