Click or drag to resize

AlpacaDeviceBaseClass Class

Base class for Alpaca client devices
Inheritance Hierarchy
SystemObject
  ASCOM.Alpaca.ClientsAlpacaDeviceBaseClass
    More

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 2.1.0+15bd426746e14ecc59ad81c289f923331d1aae8b
Syntax
public abstract class AlpacaDeviceBaseClass : IAlpacaClientV2, 
	IAscomDeviceV2, IAscomDevice, IDisposable

The AlpacaDeviceBaseClass type exposes the following members.

Constructors
 NameDescription
Public methodAlpacaDeviceBaseClass Create a new instance of the AlpacaDeviceBaseClass passing the instance to the client configuration class
Top
Properties
 NameDescription
Public propertyClientConfiguration Provide access to the client configuration
Public propertyConnected Set True to enable the link. Set False to disable the link. You can also read the property to check whether it is connected.
Public propertyConnecting Completion variable for asynchronous connect and disconnect operations
Public propertyDescription Returns a description of the driver, such as manufacturer and model number.
Public propertyDeviceState Returns the device's operational state in a single call
Public propertyDriverInfo Descriptive and version information about this ASCOM driver.
Public propertyDriverVersion A string in the form "n.n" containing only the major and minor version of the driver.
Public propertyInterfaceVersion The interface version number that this device implements.
Public propertyName The short name of the driver, for display purposes
Public propertySupportedActions Returns the list of action names supported by this driver.
Top
Methods
 NameDescription
Public methodCode exampleAction Invokes the specified device-specific action.
Public methodCommandBlind Transmits an arbitrary string to the device and does not wait for a response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodCommandBool Transmits an arbitrary string to the device and waits for a boolean response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodCommandString Transmits an arbitrary string to the device and waits for a string response. Optionally, protocol framing characters may be added to the string before transmission.
Public methodConnect Connect to device asynchronously
Public methodDisconnect Disconnect from device asynchronously
Public methodDispose This method is a "clean-up" method that is primarily of use to drivers that are written in languages such as C# and VB.NET where resource clean-up is initially managed by the language's runtime garbage collection mechanic. Driver authors should take care to ensure that a client or runtime calling Dispose() does not adversely affect other connected clients. Applications should not call this method.
Public methodRefreshClient Updates the internal HTTP client with a new instance.
Top
Extension Methods
 NameDescription
Public Extension MethodConnectAsync Returns an awaitable, running, Task that connects to the device. (Polls IAscomDeviceV2.Connecting)
(Defined by ClientExtensions)
Public Extension MethodDisconnectAsync Returns an awaitable, running, Task that disconnects from the device. (Polls IAscomDeviceV2.Connecting)
(Defined by ClientExtensions)
Top
See Also
Inheritance Hierarchy