IAscomDevice Interface

Defines the properties and methods that are common to all ASCOM devices.

Definition

Namespace: ASCOM.Common.DeviceInterfaces
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
C#
public interface IAscomDevice

Properties

Connected Set True to enable the link. Set False to disable the link. You can also read the property to check whether it is connected.
Description Returns a description of the driver, such as manufacturer and model number.
DriverInfo Descriptive and version information about this ASCOM driver.
DriverVersion A string in the form "n.n" containing only the major and minor version of the driver.
InterfaceVersion The interface version number that this device implements.
Name The short name of the driver, for display purposes
SupportedActions Returns the list of action names supported by this driver.

Methods

Action Invokes the specified device-specific action.
CommandBlind 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.
CommandBool 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.
CommandString 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.
Dispose 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.

Version Information

.NET Standard

Supported in: 2.0

See Also