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:log_management_api [2020/09/10 15:59] yjjung [Log Management API] |
en:log_management_api [2020/09/10 16:03] yjjung [OnLogReceivedEx] |
||
---|---|---|---|
Line 17: | Line 17: | ||
===== Callback Function ===== | ===== Callback Function ===== | ||
==== OnLogReceived ==== | ==== OnLogReceived ==== | ||
- | 장치로부터 새로운 로그를 수신했을 때 호출되는 콜백 함수입니다. \\ \\ | + | Callback function that is called when receiving a new log from the device. \\ \\ |
<code cpp> | <code cpp> | ||
typedef void (*OnLogReceived)(uint32_t deviceId, BS2Event* log); | typedef void (*OnLogReceived)(uint32_t deviceId, BS2Event* log); | ||
Line 23: | Line 23: | ||
\\ | \\ | ||
1. //deviceId// \\ | 1. //deviceId// \\ | ||
- | 새로운 로그를 보내준 장치 ID입니다. \\ \\ | + | Device ID \\ \\ |
2. //log// \\ | 2. //log// \\ | ||
- | 새로운 로그 정보 구조체입니다. \\ \\ | + | New log information structure \\ \\ |
==== OnLogReceivedEx ==== | ==== OnLogReceivedEx ==== | ||
- | [+ V2.7.1] 장치로부터 새로운 로그를 수신했을 때 호출되는 콜백 함수입니다. \\ | + | [+ V2.7.1] Callback function that is called when receiving a new log from the device. \\ |
- | 열화상 카메라를 통해 측정된 체온이 세번째 인자로 수신되며, [[configuration api#BS2FaceConfigExt]]의 auditTemperature가 true로 설정되어져야 합니다. \\ \\ | + | The temperature information is transferred as the 3rd parameter, and auditTemperature should be true in [[configuration api#BS2FaceConfigExt]]. \\ \\ |
<code cpp> | <code cpp> | ||
typedef void (*OnLogReceivedEx)(uint32_t deviceId, BS2Event* log, uint32_t temperature); | typedef void (*OnLogReceivedEx)(uint32_t deviceId, BS2Event* log, uint32_t temperature); | ||
Line 35: | Line 35: | ||
\\ | \\ | ||
1. //deviceId// \\ | 1. //deviceId// \\ | ||
- | 새로운 로그를 보내준 장치 ID입니다. \\ \\ | + | Device ID \\ \\ |
2. //log// \\ | 2. //log// \\ | ||
- | 새로운 로그 정보 구조체입니다. \\ \\ | + | New log information structure \\ \\ |
3. //temperature// \\ | 3. //temperature// \\ | ||
- | 새로운 로그 발생 시, 측정된 체온 정보입니다. \\ \\ | + | Temperature information \\ \\ |