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
Next revision Both sides next revision
en:server_api [2021/08/06 15:09]
kateyu
en:server_api [2023/02/28 15:52]
mwkim [Server API]
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 46: Line 47:
 3. //userID// \\  3. //userID// \\ 
 User ID  \\ \\  User ID  \\ \\ 
 +
 +==== OnBarcodeScanned ====
 +Callback function called when barcode is scanned on the device. \\ \\ 
 +<code cpp>
 +typedef void (*OnBarcodeScanned)(uint32_t deviceId, const char* barcode);
 +</​code>​
 +\\
 +1. //​deviceId//​ \\ 
 +Callback function called when barcode is scanned on the device. ​ \\ \\ 
 +2. //barcode// \\ 
 +Barcode string read from device. ​ \\ \\ 
 +