Redler Technologies Inc.

MotionDataPacketGetErrorPacket Method

Generates an error packet with a given error code

Definition

Namespace: Redler.Motion.Communication.MotionPackets
Assembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
C#
public static MotionDataPacket GetErrorPacket(
	MotionPacketHelperErrorCodes errorCode
)

Parameters

errorCode  MotionPacketHelperErrorCodes
The type of error that occurred

Return Value

MotionDataPacket
A MotionDataPacket with it's ErrorFlag set to true, and in Payload 0'th index resides the error code. This error code can be parsed with:
C#
()[0];

See Also