Click or drag to resize

AscomDriverCommandBlind Method

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.

Namespace: ASCOM.DriverAccess
Assembly: ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 7.0.0-rc.0+0
Syntax
public void CommandBlind(
	string Command,
	bool Raw
)

Parameters

Command  String
The literal command string to be transmitted.
Raw  Boolean
if set to true the string is transmitted 'as-is'. If set to false then protocol framing characters may be added prior to transmission.
Exceptions
ExceptionCondition
MethodNotImplementedExceptionIf the method is not implemented
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. The device did not successfully complete the request.
Remarks

May throw a NotImplementedException.

The CommandXXX methods are a historic mechanic that provides clients with direct and unimpeded access to change device hardware configuration. While highly enabling for clients, this mechanic is inherently risky because clients can fundamentally change hardware operation without the driver being aware that a change is taking / has taken place.

The newer Action / SupportedActions mechanic provides discrete, named, functions that can deliver any functionality required.They do need driver authors to make provision for them within the driver, but this approach is much lower risk than using the CommandXXX methods because it enables the driver to resolve conflicts between standard device interface commands and extended commands provided as Actions.The driver is always aware of what is happening and can adapt more effectively to client needs.

See Also