How to use HardwareScan() results?

Hello,

Sorry if the question is silly but I can’t figure out how to use HardwareScan().

My goal is to scan an ip/user/pass and find out the driver number/path, which is required by AddHardware().

Here’s what I tried:

ServerTask scanTask = recordingServer.HardwareScan(ip, driverids, user, pass, false);
while (scanTask.State != StateEnum.Error && scanTask.State != StateEnum.Success)
{
  System.Threading.Thread.Sleep(1000);
  scanTask.UpdateState();
}
Console.WriteLine("Scan task: " + scanTask.State);

This “works” in the sense that the task completes successfully but I cannot find how to get the driver number out of scanTask.

Also what is the format of the “string hardwareDriverIds” parameter? It’s a string but if I separate the hardware numbers by a comma or a space there’s a parameter error. In the “HardwareScanServerTask HardwareScan()” overload HardwareScanServerTask actually uses a “Collection” which makes much more sense.

Kind regards,

Philippe

Oops I should have searched before, I found this related topic: https://developer.milestonesys.com/s/feed/0D53X00005vzNvcSAE

Well I can’t call “GetProperty” on the scanTask :frowning:

Ok, the problem was that I was using the SDK 2019 R1. Upgrading to 2019 R3 fixed the problem.