AlpacaCameraConfigureAndConnect Method

Configure the device and establish an HTTP connection

Definition

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public void ConfigureAndConnect(
	ServiceType serviceType,
	string ipAddressString,
	int portNumber,
	int remoteDeviceNumber,
	int establishConnectionTimeout,
	int standardDeviceResponseTimeout,
	int longDeviceResponseTimeout,
	uint clientNumber,
	ImageArrayTransferType imageArrayTransferType,
	ImageArrayCompression imageArrayCompression,
	string userName,
	string password,
	bool strictCasing,
	ILogger logger
)

Parameters

serviceType  ServiceType
HTTP or HTTPS
ipAddressString  String
Alpaca device's IP Address
portNumber  Int32
Alpaca device's IP Port number
remoteDeviceNumber  Int32
Alpaca device's device number e.g. Telescope/0
establishConnectionTimeout  Int32
Timeout (seconds) to initially connect to the Alpaca device
standardDeviceResponseTimeout  Int32
Timeout (seconds) for transactions that are expected to complete quickly e.g. retrieving CanXXX properties
longDeviceResponseTimeout  Int32
Timeout (seconds) for transactions that are expected to take a long time to complete e.g. Camera.ImageArray
clientNumber  UInt32
Arbitrary integer that represents this client. (Should be the same for all transactions from this client)
imageArrayTransferType  ImageArrayTransferType
Specifies the method to be used to retrieve the ImageArray property value.
imageArrayCompression  ImageArrayCompression
Extent to which the ImageArray data stream should be compressed.
userName  String
Basic authentication user name for the Alpaca device
password  String
basic authentication password for the Alpaca device
strictCasing  Boolean
Tolerate or throw exceptions if the Alpaca device does not use strictly correct casing for JSON object element names.
logger  ILogger
Optional ILogger instance that can be sued to record operational information during execution

Version Information

.NET Standard

Supported in: 2.0

See Also