henrik.thorsen

Problems using ciOpenLocalDevice and ciOpenRemoteDevice in .NET SDK

Discussion created by henrik.thorsen on Dec 28, 2012
Latest reply on Feb 14, 2014 by jonhcw

Hi,

 

I have developed a probe in .NET SDK that I want to adopt to the new USM data model used in UMP60. I am following the code example in UMP60 user manual, but the ciOpenLocalDevice and ciOpenRemoteDevice methods always returns NULL instead of a valid CIHandle.

 

The fileversion of the NimbusAPI.dll file is 2.1.0.0

(I have also downloaded the newest .NET SDK (shows up as version 2.2 in Infrastructure Manager, but the file version of the NimbusAPI.dll file is 2.5.0.0), but with this version the UserLogin() method fails.

 

Any suggestions on how to make this work using .NET SDK?

 

See code below:

{

// For development testing only
            Controller.IP = "143.97.97.75";
            Hub.IP = "143.97.97.75";
            ProbeInfo.Name = "TIUProbe";

            UserLogin("administrator", "intelinet");
                
            Register();

            CIHandle hCI = ciOpenLocalDevice("1.1", "Total");
            CIHandle hCI2 = ciOpenRemoteDevice("1.1", "Total", Controller.IP);

            int res = ciAlarm(hCI, "1.1:3", "TIU Probe ok", 3, "1.2.3.1000.1", "86.11", "172.16.1.2", null);

}

Outcomes