There is no search method for this. You will have to go through the cameras in the system using the Configuration API to find a hardware with a matching mac address. Have a look at the Configuration API Client sample to get an idea of the structure in the Configuration API: https://doc.developer.milestonesys.com/html/index.html?base=samples/configapiclient.html&tree=tree_2.html
We have a set of strongly typed classes build upon the configuration API, which makes it a bit easier to work with. These are all in the namespace VideoOS.Platform.ConfigurationItems and you can have a look at this sample to get started using those: https://doc.developer.milestonesys.com/html/index.html?base=samples/configaddcameras.html&tree=tree_2.html
I looked at the sample, how do I create IConfigurationService client instance when running from MIP plugin? I don’t have user credentials… I only have EnvironmentManager.Instance
If you use the classes in the ConfigurationItems workspace you don’t need to supply credentials. They will use the credentials of the current environment session.
something like this?
ChannelFactory channel = null;
channel = new ChannelFactory<IConfigurationService>();
IConfigurationService \_client = channel.CreateChannel();
it doesn’t work… I get the following message:
{“The Address property on ChannelFactory.Endpoint was null. The ChannelFactory’s Endpoint must have a valid Address specified.”}
How do I know the address?
This is not from the ConfigurationItems namespace. Please have a look at this sample and use that approach instead:
https://doc.developer.milestonesys.com/html/index.html?base=samples/configaddcameras.html&tree=tree_2.html