Redler Technologies Inc.

MotionSerialComConvertPacketToByteArray Method

Given a packet and the communication direction, gets the packets as byte array

Definition

Namespace: Redler.Motion.Communication.MotionCom
Assembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
C#
public static byte[] ConvertPacketToByteArray(
	MotionDataPacket packet,
	bool hostToDevice = false
)

Parameters

packet  MotionDataPacket
The packet to parse
hostToDevice  Boolean  (Optional)
The direction of the transmission (default PC -> Device)

Return Value

Byte
The parsed byte array

See Also