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.CameoSdkAssembly: Bosch.Vms.CameoSdk (in Bosch.Vms.CameoSdk.dll) Version: 1.6.0.0
SyntaxStartupResult 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
StartupResultOk indicates a successful start of SDK.
Any other result reflects an error.
Exceptions| Exception | Condition |
|---|
| CameoSdkException | SDK 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.
var cameoSdk = EntryPoint.GetSdk(Parameters);
cameoSdk.Startup("ssh://127.0.0.1:5322", "user", "password", StartupMode.LocalConfiguration);
See Also