HI,
I’m using ConfigApiClient sample application from your SDK to change settings for a camera.
When I try to change FPS for Video Stream 1 I’m getting the following error: “EdgeStorageEnabled is out of range” although I did not touch this parameter at all.
Same thing happens when I try to do it from my own application.
I’m using XProtect Corporate 2016
I was able to reproduce this. I will open a support case on this issue.
We have discovered that the EdgeStorageEnabled is in the interface when you have ConfigApiClient and it is indeed not set to a value.
We have tracked this back to a bug in the camera driver.
You will discover with the ConfigAPIClient that if you set the EdgeStorageEnabled (true or false) you can submit the changes, and change the FPS if that is what you aim to do.
So what is needed to make the ConfigAPIClient work as intended is the following snippet of code..
var property = configurationItem.Properties.FirstOrDefault<Property>(p => p.DisplayName == "EdgeStorageEnabled");
if(property != null && !property.ValueTypeInfos.Any(f=>f.Value == property.Value))
{
property.Value = property.ValueTypeInfos[0].Value;
}
We have reported a bug for the driver for the camera and we will make sure future drivers will not have this issue. For now please use the code above as a workaround.