AlpacaToolsErrorMessageToByteArray Method

Convert an Alpaca error number and message to a byte array for transfer to a client.

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static byte[] ErrorMessageToByteArray(
	int metadataVersion,
	uint clientTransactionID,
	uint serverTransactionID,
	AlpacaErrors alpacaErrorNumber,
	string errorMessage
)

Parameters

metadataVersion  Int32
Required metadata version - Currently 1
clientTransactionID  UInt32
Client's transaction ID.
serverTransactionID  UInt32
Device's transaction ID.r
alpacaErrorNumber  AlpacaErrors
Alpaca error number
errorMessage  String
Error message to encode.

Return Value

Byte
The error message as a byte array

Exceptions

Version Information

.NET Standard

Supported in: 2.0

See Also