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:sdk_api [2020/09/22 19:25]
kkshin
en:sdk_api [2023/02/28 14:46]
mwkim [SDK API]
Line 17: Line 17:
   * [[BS2_SetDeviceSearchingTimeout]] : Specifies the device searching time.    * [[BS2_SetDeviceSearchingTimeout]] : Specifies the device searching time. 
   * [[BS2_SetDebugFileLog]] : Retrieves debugging file log.   * [[BS2_SetDebugFileLog]] : Retrieves debugging file log.
 +  * [[BS2_EnableDeviceLicense]]:​ [+ 2.9.1] Activate the device license.
 +  * [[BS2_DisableDeviceLicense]]:​ [+ 2.9.1] Deactivate the device license.
 +  * [[BS2_QueryDeviceLicense]]:​ [+ 2.9.1] Check device license information.
  
  
Line 38: Line 41:
  
 2. //​reserved//​ \\  2. //​reserved//​ \\ 
-Reserved space. \\+Reserved space. \\ \\ 
 + 
 + 
 +==== BS2LicenseBlob ==== 
 +<code cpp> 
 +typedef struct { 
 +    BS2_LICENSE_TYPE ​   licenseType;​ 
 +    uint16_t ​           numOfDevices;​ 
 +    BS2_DEVICE_ID* ​     deviceIDObjs;​ 
 +    uint32_t ​           licenseLen;​ 
 +    uint8_t* ​           licenseObj;​ 
 +} BS2LicenseBlob;​ 
 +</​code>​ 
 +1. //​licenseType//​ \\  
 +The type of license. \\  
 +<WRAP group 50%> 
 +^Value ​ ^Description ​ ^ 
 +|0x0000 ​ |None  | 
 +|0x0001 ​ |Visual QR  | 
 +</​WRAP>​ 
 +2. //​numOfDevices//​ \\  
 +Number of licenses activated devices. \\ \\ 
 +3. //​deviceIDObjs//​ \\  
 +Slave devices for which license information will be issued. \\ \\ 
 +4. //​licenseLen//​ \\  
 +license activation file size. \\ \\ 
 +5. //​licenseObj//​ \\  
 +License activation data block. \\ \\ 
 + 
 + 
 +==== BS2LicenseResult ==== 
 +<code cpp> 
 +typedef struct { 
 +    BS2_DEVICE_ID ​      ​deviceID;​ 
 +    BS2_LICENSE_STATUS ​ status; 
 +} BS2LicenseResult;​ 
 +</​code>​ 
 +1. //​deviceID//​ \\  
 +Device identifier. \\ \\ 
 +2. //status// \\  
 +License status information. \\ \\ 
 +<WRAP group 50%> 
 +^Value ​ ^Description ​ ^ 
 +|0  |Not supported ​ | 
 +|1  |Disable ​ | 
 +|2  |Enable ​ | 
 +|3  |Expired ​ | 
 +</​WRAP>​