BS2_GetSpecifiedDeviceInfo
+ v2.6.3 specifiedDeviceInfo를 통해 장치 정보를 선택적으로 가져옵니다.
함수
#include "BS_API.h"
int BS2_GetSpecifiedDeviceInfo(void* context, uint32_t deviceId, BS2EnumSpecifiedDeviceInfo specifiedDeviceInfo, void* pOutDeviceInfo, uint32_t nDeviceInfoSize, uint32_t* pOutDeviceInfoSize);
파라미터
-
[In]
context: Context -
[In]
deviceId: 장치 식별자 -
[In]
specifiedDeviceInfo: 취득하고자하는 장치 정보의 식별자식별자 구조체 1 BS2SimpleDeviceInfo2 BS2SimpleDeviceInfoEx3 BS2IPv6DeviceInfo -
[Out]
pOutDeviceInfo: 장치 정보를 저장할 주소 -
[In]
nDeviceInfoSize: 장치 정보를 저장할 주소에 할당된 메모리 크기 -
[Out]
pOutDeviceInfoSize: 취득한 장치 정보의 크기
반환 값
성공적으로 수행될 경우 BS_SDK_SUCCESS를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.