~~NOTOC~~ [[device_api]] > [[BS2_GetDeviceInfo]] ---- ===== BS2_GetDeviceInfo ===== 장치 ID, 유형, 네트워크 정보 및 특성 정보를 가져옵니다. ==== 함수 ==== #include "BS_API.h" int BS2_GetDeviceInfo(void* context, uint32_t deviceId, BS2SimpleDeviceInfo* deviceInfo); [[device_api#BS2SimpleDeviceInfo|BS2SimpleDeviceInfo 구조체 보기]] ==== 파라미터 ==== * [In] ''//context//'' : Context * [In] ''//deviceId//'' : 장치 식별자 * [Out] ''//deviceInfo//'' : 장치 정보를 저장할 포인터 ==== 반환값 ==== 성공적으로 수행될 경우 ''BS_SDK_SUCCESS''를 반환하고, 에러가 발생할 경우 상응하는 에러 코드를 반환합니다.