Old revisions Add to book Export to PDF Book Creator Add this page to your book Book Creator Remove this page from your book Manage book (0 page(s)) Help Slave Control API > BS2_GetOsdpStandardDeviceCapability BS2_GetOsdpStandardDeviceCapability [+ 2.9.1] CoreStation40 Get support information for OSDP devices. Declaration #include "BS_API.h" int BS2_GetOsdpStandardDeviceCapability(void* context, uint32_t osdpDeviceId, BS2OsdpStandardDeviceCapability* capability); See BS2OsdpStandardDeviceCapability Structure Parameter [In] context : Context [In] osdpDeviceId : OSDP device identifier [Out] capability : Pointer to support information structure Return Value If successfully done, BS_SDK_SUCCESS will be returned. If there is an error, the corresponding error code will be returned. See Also BS2_AddOsdpStandardDevice BS2_GetOsdpStandardDevice BS2_GetAvailableOsdpStandardDevice BS2_UpdateOsdpStandardDevice BS2_RemoveOsdpStandardDevice BS2_GetOsdpStandardDeviceCapability BS2_SetOsdpStandardDeviceSecurityKey Sample Code(C++) sample_bs2_getosdpstandarddevicecapability.cpp BS2OsdpStandardDeviceCapability capability = { 0, }; BS2_DEVICE_ID id = Utility::selectSlaveID(); int sdkResult = BS2_GetOsdpStandardDeviceCapability(context_, id, &capability); if (BS_SDK_SUCCESS != sdkResult) printf("BS2_GetOsdpStandardDeviceCapability call failed: %d", sdkResult); return sdkResult; Sample Code (C#) sample_bs2_getosdpstandarddevicecapability.cs UInt32 id = Util.GetInputSlaveID(); BS2OsdpStandardDeviceCapability capability; BS2ErrorCode result = (BS2ErrorCode)API.BS2_GetOsdpStandardDeviceCapability(sdkContext, id, out capability); if (result != BS2ErrorCode.BS_SDK_SUCCESS) Console.WriteLine("Got error({0}).", result); else Console.WriteLine("Call success."); return result;