Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
en:server_api [2022/04/21 10:10]
mark
en:server_api [2023/03/08 09:15]
kkshin [OnBarcodeScanned]
Line 21: Line 21:
   * [[BS2_SetUserPhraseHandler]]:​​ [+ 2.7.0] Registers the server user phrase handler.   * [[BS2_SetUserPhraseHandler]]:​​ [+ 2.7.0] Registers the server user phrase handler.
   * [[BS2_ResponseUserPhrase]]:​​ [+ 2.7.0] Transfers the user phrase to the device.   * [[BS2_ResponseUserPhrase]]:​​ [+ 2.7.0] Transfers the user phrase to the device.
 +  * [[BS2_SetOsdpStandardDeviceStatusListener]]:​ [+ 2.9.1] Register a listener function that detects state changes of the OSDP device.
 ===== Callback Function ====== ===== Callback Function ======
 <code cpp> <code cpp>
Line 48: Line 49:
  
 ==== OnBarcodeScanned ==== ==== OnBarcodeScanned ====
-장치에서 ​barcode가 scan 되었을 때 호출되는 콜백 함수입니다 \\ \\ +Callback function called when barcode ​is scanned on the device. \\ \\ 
 <code cpp> <code cpp>
 typedef void (*OnBarcodeScanned)(uint32_t deviceId, const char* barcode); typedef void (*OnBarcodeScanned)(uint32_t deviceId, const char* barcode);
Line 54: Line 55:
 \\ \\
 1. //​deviceId//​ \\  1. //​deviceId//​ \\ 
-읽혀진 barcode를 보내준 장치 ​ID입니다.  \\ \\ +Device ​ID that sent the scanned barcode.  \\ \\ 
 2. //barcode// \\  2. //barcode// \\ 
-장치로부터 읽혀진 barcode 문자열입니다.  \\ \\ +Barcode string read from device.  \\ \\ 
  
 +
 +==== OnOsdpStandardDeviceStatusChanged ====
 +This is a callback function that is called when the state of the OSDP device changes. ​ \\ \\ 
 +<code cpp>
 +typedef void (*OnOsdpStandardDeviceStatusChanged)(uint32_t deviceId, const BS2OsdpStandardDeviceNotify* notifyData);​
 +</​code>​
 +\\
 +1. //​deviceId//​ \\ 
 +OSDP device identifier. ​ \\ \\ 
 +2. //​notifyData//​ \\ 
 +OSDP device information. ​ \\ \\