AlpacaToolsErrorMessageToByteArray Method
Convert an Alpaca error number and message to a byte array for transfer to a client.
Namespace: ASCOM.Common.AlpacaAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
public static byte[] ErrorMessageToByteArray(
int metadataVersion,
uint clientTransactionID,
uint serverTransactionID,
AlpacaErrors alpacaErrorNumber,
string errorMessage
)
Public Shared Function ErrorMessageToByteArray (
metadataVersion As Integer,
clientTransactionID As UInteger,
serverTransactionID As UInteger,
alpacaErrorNumber As AlpacaErrors,
errorMessage As String
) As Byte()
- 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.
ByteThe error message as a byte array
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10