Redler Technologies Inc.

MotionComSendReceivePacketAsync Method

Sends a packet and then receives a packet.

Definition

Namespace: Redler.Motion.Communication.MotionCom
Assembly: Redler.Motion.Communication (in Redler.Motion.Communication.dll) Version: 0.0.0.0
C#
public Task<MotionDataPacket> SendReceivePacketAsync(
	MotionDataPacket packetToSend,
	TimeSpan? delayAfterTx = null
)

Parameters

packetToSend  MotionDataPacket
The packet you want to send and receive
delayAfterTx  NullableTimeSpan  (Optional)
Time to wait after sending the packet. If not defined, there will be no delay after the packet is sent

Return Value

TaskMotionDataPacket
The response packet from the driver

Remarks

Exceptions

InvalidOperationExceptionWhen the response was not as expected

See Also