Initialize the command manager.

Namespace:  Bespoke.Robotics.BrainStem
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public static void Init(
	Stream stream,
	int commandReplyTimeout
)
Visual Basic (Declaration)
Public Shared Sub Init ( _
	stream As Stream, _
	commandReplyTimeout As Integer _
)
Visual C++
public:
static void Init(
	Stream^ stream, 
	int commandReplyTimeout
)

Parameters

stream
Type: Bespoke.Robotics.BrainStem..::.Stream
An open stream to an Acroname BrainStem.
commandReplyTimeout
Type: System..::.Int32
Time (in milliseconds) a command will with for a reply before failing.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if stream is null.
Bespoke.Robotics.BrainStem.Exceptions..::.CommandManagerAlreadyInitializedExceptionThrown if the command manager is already initialized.
Bespoke.Robotics.BrainStem.Exceptions..::.StreamClosedExceptionThrown if the stream is closed.

See Also