Click or drag to resize

ICameoSdkStartup Method

Initializes SDK.
Depending on StartupMode it can either connect to server and perform remote authorization and update the configuration or use locally cached configuration with local authorization.

Namespace: Bosch.Vms.CameoSdk
Assembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
Syntax
C#
StartupResult Startup(
	string serverAddress,
	string user,
	string password,
	StartupMode startupMode
)

Parameters

serverAddress  String
IP address of BVMS server.
user  String
Log on name.
password  String
Password.
startupMode  StartupMode
Defines a startup mode. See StartupMode enumeration for details.

Return Value

StartupResult
Ok indicates a successful start of SDK.
Any other result reflects an error.
Exceptions
ExceptionCondition
CameoSdkExceptionSDK is already started, starting is in progress or in cases of a usage error, execution error or program error.
Remarks
The LocalConfiguration value of the startupMode parameter is invalid for a 'ssh' connection. In this mode, no connection to the server is established, i.e. no ssh tunnel is set up. Without an ssh tunnel, it is not possible to connect to any devices. For instance the following code throws a CameoSdkException.
C#
var cameoSdk = EntryPoint.GetSdk(Parameters);
cameoSdk.Startup("ssh://127.0.0.1:5322", "user", "password", StartupMode.LocalConfiguration);
See Also