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:device_api [2018/03/20 16:10]
yjjung
en:device_api [2019/05/27 16:20]
yjjung
Line 4: Line 4:
  
   * [[BS2_GetDeviceInfo]]:​ Gets the device information.   * [[BS2_GetDeviceInfo]]:​ Gets the device information.
 +  * [[BS2_GetDeviceInfoEx]]:​ [+ 2.6.0] Gets additional device information. ​
   * [[BS2_GetDeviceTime]]:​ Gets the device time.   * [[BS2_GetDeviceTime]]:​ Gets the device time.
   * [[BS2_SetDeviceTime]]:​ Sets the device time.   * [[BS2_SetDeviceTime]]:​ Sets the device time.
Line 14: Line 15:
   * [[BS2_UpgradeFirmware]]:​ Upgrades the firmware.   * [[BS2_UpgradeFirmware]]:​ Upgrades the firmware.
   * [[BS2_UpdateResource]]:​ Updates the resource.   * [[BS2_UpdateResource]]:​ Updates the resource.
 +  * [[BS2_GetSpecifiedDeviceInfo]]:​ [+ 2.6.3] Gets specified device information. ​
 +  * [[BS2_GetAuthOperatorLevelEx]]:​ [+ 2.6.3] Gets specified device operator. (Support operator up to 1000)
 +  * [[BS2_GetAllAuthOperatorLevelEx]]:​ [+ 2.6.3] Gets all device operators. (Support operator up to 1000)
 +  * [[BS2_SetAuthOperatorLevelEx]]:​ [+ 2.6.3] Sets device operator. (Support operator up to 1000)
 +  * [[BS2_RemoveAuthOperatorLevelEx]]:​ [+ 2.6.3] Remove specified device operator. (Support operator up to 1000)
 +  * [[BS2_RemoveAllAuthOperatorLevelEx]]:​ [+ 2.6.3] Remove all device operators. (Support operator up to 1000)
 ===== Structure ===== ===== Structure =====
 ==== BS2SimpleDeviceInfo ==== ==== BS2SimpleDeviceInfo ====
Line 228: Line 235:
 Binary resource data. \\ \\ Binary resource data. \\ \\
  
 +
 +==== BS2IPv6DeviceInfo ====
 +<code cpp>
 +enum {
 +    BS2_MAX_IPV6_ALLOCATED_ADDR = 8,
 +};
 +
 +typedef struct
 +{
 +    BS2_DEVICE_ID id;
 +    uint8_t reserved[1];​
 +    uint8_t bIPv6Mode;
 +    char ipv6Address[BS2_IPV6_ADDR_SIZE];​
 +    uint16_t portV6;
 +    char connectedIPV6[BS2_IPV6_ADDR_SIZE];​
 +    uint8_t numOfAllocatedAddressV6;​
 +    char allocatedIpAddressV6[BS2_IPV6_ADDR_SIZE][BS2_MAX_IPV6_ALLOCATED_ADDR];​
 +}BS2IPv6DeviceInfo;​
 +</​code>​
 +1. //id// \\ 
 +장치 식별자입니다. \\ \\ 
 +2. //​reserved//​ \\ 
 +예약된 공간입니다. \\ \\ 
 +3. //​bIPv6Mode//​ \\ 
 +현 장치가 IP V6로 동작하는지 여부를 나타내는 flag입니다. \\ \\ 
 +4. //​ipv6Address//​ \\ 
 +현재 장치의 IP V6 주소입니다. \\ \\ 
 +5. //portV6// \\ 
 +현재 장치의 IP V6 포트 번호입니다. \\ \\ 
 +6. //​connectedIPV6//​ \\ 
 +장치가 연결된 서버의 IP V6 주소입니다. \\ \\ 
 +7. //​numOfAllocatedAddressV6//​ \\ 
 +현재 장치에 할당되어진 IP V6 주소의 갯수를 나타냅니다. \\ \\ 
 +8. //​allocatedIpAddressV6//​ \\ 
 +현재 장치에 할당되어진 IP V6 주소입니다. numOfAllocatedAddressV6는 할당되어진 주소의 갯수를 나타냅니다. \\ \\
 +
 +==== BS2AuthOperatorLevel ====
 +<code cpp>
 +typedef struct {
 +    char userID[BS2_USER_ID_SIZE];​
 +    uint8_t level;
 +    uint8_t reserved[3];​
 +} BS2Operator;​
 +
 +typedef BS2Operator BS2AuthOperatorLevel;​
 +</​code>​
 +1. //userID// \\ 
 +사용자 식별자입니다. \\ \\ 
 +2. //level// \\ 
 +사용자가 인증되었을 때 식별자에 해당하는 권한을 지정합니다. \\ 
 +<WRAP group 50%>
 +^값  ^설명 ​ ^
 +|0  |권한 없음 ​ |
 +|1  |관리자 권한 ​ |
 +|2  |시스템 구성을 변경할 수 있는 권한 ​ |
 +|3  |사용자 정보를 변경할 수 있는 권한 ​ |
 +</​WRAP>​
 +3. //​reserved//​ \\ 
 +예약된 공간입니다. \\