Dynamixel
ReadPacket Method (id)
NamespacesDynamixelDynamixelInterfaceReadPacket(Int32%)
Read a raw packet with basic structure validation.
Declaration Syntax
C#Visual BasicVisual C++
protected byte[] ReadPacket(
	out int id
)
Protected Function ReadPacket ( _
	<OutAttribute> ByRef id As Integer _
) As Byte()
protected:
array<unsigned char>^ ReadPacket(
	[OutAttribute] int% id
)
Parameters
id ( Int32 %)
The id from the packet if valid, or 0xFF if not.
Return Value
The data present in the packet, or null if none.
Exceptions
ExceptionCondition
TimeoutException A TimeoutException is the only expected Exception, since any other packet error results in a retry and wait until valid packet data is received. If the return packet is actually corrupted and never arrives, a timeout will occur.

Assembly: Dynamixel (Module: Dynamixel) Version: 1.0.4.0