Hi,
In learning about MIPs it seems as though the best way to get the hardware Item for a camera Item is to create a Camera ConfigurationItem then get the ParentItemPath and then create a Hardware ConfigurationItem. The only catch now is when attempting to get the Item from a Hardware ConfigurationItem utilizing the code below the “GetItem” method call works as expected when my plugin runs in the ManagementClient and returns null when running in the SmartClient.
I’m using the same Windows credentials when logging into the server via SmartClient and ManagementClient, my server version is XProtect Essential+ 2021 R2.
Any ideas?
// item is of Kind.Camera
CameraConfigItem = new Camera(item.FQID);
HardwareConfigItem = new Hardware(CameraConfigItem.ServerId, CameraConfigItem.ParentItemPath);
var hardwareItem = Configuration.Instance.GetItem(HardwareConfigItem.ServerId, new Guid(HardwareConfigItem.Id), Kind.Hardware);