How would one retrieve the hardware Item for a camera Item?

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);

The Smart Client environment does not have hardware items, they are simply never implemented as the Smart Client does not need them itself.

As you would not be able to use the hardware Item anyways and you have information from the Hardware ConfigurationItem I wonder why you would need it. So if you believe you need them please explain what you are trying to do, I would love to understand why you ask and help you get what you need.