MotionSerialComConvertPacketToByteArray Method
Given a packet and the communication direction, gets the packets as byte array
Namespace: Redler.Motion.Communication.MotionComAssembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
public static byte[] ConvertPacketToByteArray(
MotionDataPacket packet,
bool hostToDevice = false
)
- packet MotionDataPacket
- The packet to parse
- hostToDevice Boolean (Optional)
- The direction of the transmission (default PC -> Device)
ByteThe parsed byte array