Initialize the command manager.
Namespace:
Bespoke.Robotics.BrainStemAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | Thrown if stream is null. |
Bespoke.Robotics.BrainStem.Exceptions..::.CommandManagerAlreadyInitializedException | Thrown if the command manager is already initialized. |
Bespoke.Robotics.BrainStem.Exceptions..::.StreamClosedException | Thrown if the stream is closed. |