Configuration API > BS2_GetOsdpStandardConfig
[+ 2.9.1] Get the device's OSDP setting information.
This setting information is also used to update the master-OSDP-slave device topology configuration within the SDK.
#include "BS_API.h" int BS2_GetOsdpStandardConfig(void* context, uint32_t deviceId, BS2OsdpStandardConfig* config);
context
: ContextdeviceId
: Device Identifierconfig
: Pointer to store OSDP setting information
If successfully done, BS_SDK_SUCCESS
will be returned. If there is an error, the corresponding error code will be returned.
BS2OsdpStandardConfig config = { 0, }; int sdkResult = BS2_GetOsdpStandardConfig(context_, id, &config); if (BS_SDK_SUCCESS != sdkResult) printf("BS2_GetOsdpStandardConfig call failed: %d", sdkResult); return sdkResult;
BS2OsdpStandardConfig config; BS2ErrorCode result = (BS2ErrorCode)API.BS2_GetOsdpStandardConfig(sdkContext, deviceID, out config); if (result != BS2ErrorCode.BS_SDK_SUCCESS) Console.WriteLine("Got error({0}).", result); else Console.WriteLine("Call success."); return result;