AscomDevice(String, DeviceTypes, Int32, String, ServiceType, IPEndPoint, String, Int32, String, String, String, String) Constructor

Initialise the ASCOM device name, ASCOM device type and ASCOM device unique ID, plus the Alpaca API device number, unique ID, service type, device IP endpoint, Alpaca unique ID, interface version and status message

Definition

Namespace: ASCOM.Alpaca.Discovery
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public AscomDevice(
	string ascomDdeviceName,
	DeviceTypes ascomDeviceType,
	int alpacaDeviceNumber,
	string uniqueId,
	ServiceType serviceType,
	IPEndPoint ipEndPoint,
	string hostName,
	int interfaceVersion,
	string serverName,
	string manufacturer,
	string manufacturerVersion,
	string location
)

Parameters

ascomDdeviceName  String
ASCOM device name
ascomDeviceType  DeviceTypes
ASCOM device type
alpacaDeviceNumber  Int32
Alpaca API device number
uniqueId  String
ASCOM device unique ID
serviceType  ServiceType
HTTP or HTTPS service type
ipEndPoint  IPEndPoint
Alpaca device IP endpoint
hostName  String
ALapca device host name
interfaceVersion  Int32
Supported Alpaca interface version
serverName  String
ALapca device host name
manufacturer  String
ALapca device host name
manufacturerVersion  String
ALapca device host name
location  String
ALapca device host name

Remarks

This can only be used by .NET clients because COM only supports parameterless initialisers.

Version Information

.NET Standard

Supported in: 2.0

See Also