示例#1
0
        public void Connect(SerialConfig config)
        {
            var rv = rsid_connect(_handle, ref config);

            if (rv != 100) // TODO
            {
                throw new Exception("Failed connecting to port " + config.port);
            }

            /*AuthConfig args;
             * args.cameraRotation = AuthConfig.CameraRotation.ROTATION_90_DEG;
             * args.securityLevel = AuthConfig.SecurityLevel.MEDIUM;
             *
             * SetAuthSettings(args);*/
        }
示例#2
0
 static extern Status rsid_connect(IntPtr rsid_authenticator, ref SerialConfig serialConfig);
示例#3
0
 public Status Connect(SerialConfig config)
 {
     return(rsid_connect(_handle, ref config));
 }
示例#4
0
 static extern Status rsid_connect_controller(IntPtr rsid_device_controller, ref SerialConfig serialConfig);