AscomDriverCommandString Method |
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.
Namespace:
ASCOM.DriverAccess
Assembly:
ASCOM.DriverAccess (in ASCOM.DriverAccess.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntaxpublic string CommandString(
string Command,
bool Raw
)
Public Function CommandString (
Command As String,
Raw As Boolean
) As String
public:
virtual String^ CommandString(
String^ Command,
bool Raw
) sealed
Parameters
- Command
- Type: SystemString
The literal command string to be transmitted. - Raw
- Type: SystemBoolean
if set to true the string is transmitted 'as-is'.
If set to false then protocol framing characters may be added prior to transmission.
Return Value
Type:
String
Returns the string response received from the device.
Exceptions
RemarksCan throw a not implemented exception
See Also