CmdMessenger
3.0
CmdMessenger is a serial port messaging library for the .Net / Mono Platform.
|
Fas Manager for serial port data. More...
Public Member Functions | |
CommunicationManager (DisposeStack disposeStack, ITransport transport, ReceiveCommandQueue receiveCommandQueue) | |
Default constructor. | |
CommunicationManager (DisposeStack disposeStack, ITransport transport, ReceiveCommandQueue receiveCommandQueue, char commandSeparator, char fieldSeparator, char escapeCharacter) | |
Constructor. | |
void | Initialize (DisposeStack disposeStack, ITransport transport, ReceiveCommandQueue receiveCommandQueue, char commandSeparator, char fieldSeparator, char escapeCharacter) |
Initializes this object. | |
bool | StartListening () |
Connects to a serial port defined through the current settings. | |
bool | StopListening () |
Stops listening to the serial port. | |
void | WriteLine (string value) |
Writes a string to the serial port. | |
void | WriteLine< T > (T value) |
Writes a parameter to the serial port followed by a NewLine. | |
void | Write< T > (T value) |
Writes a parameter to the serial port. | |
void | ProcessLine (string line) |
Converts lines on . | |
Public Attributes | |
readonly Encoding | StringEncoder = Encoding.GetEncoding("ISO-8859-1") |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
Properties | |
long | LastLineTimeStamp [get, set] |
Gets or sets the time stamp of the last received line. |
Fas Manager for serial port data.
CommandMessenger.CommunicationManager.CommunicationManager | ( | DisposeStack | disposeStack, |
ITransport | transport, | ||
ReceiveCommandQueue | receiveCommandQueue | ||
) |
Default constructor.
/
disposeStack | The DisposeStack |
transport | The Transport Layer |
receiveCommandQueue |
CommandMessenger.CommunicationManager.CommunicationManager | ( | DisposeStack | disposeStack, |
ITransport | transport, | ||
ReceiveCommandQueue | receiveCommandQueue, | ||
char | commandSeparator, | ||
char | fieldSeparator, | ||
char | escapeCharacter | ||
) |
Constructor.
receiveCommandQueue | |
commandSeparator | The End-Of-Line separator. |
fieldSeparator | |
escapeCharacter | The escape character. |
disposeStack | The DisposeStack |
transport | The Transport Layer |
override void CommandMessenger.CommunicationManager.Dispose | ( | bool | disposing | ) | [protected, virtual] |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
disposing | true if resources should be disposed, false if not. |
Reimplemented from CommandMessenger.DisposableObject.
void CommandMessenger.CommunicationManager.Initialize | ( | DisposeStack | disposeStack, |
ITransport | transport, | ||
ReceiveCommandQueue | receiveCommandQueue, | ||
char | commandSeparator, | ||
char | fieldSeparator, | ||
char | escapeCharacter | ||
) |
Initializes this object.
receiveCommandQueue | |
commandSeparator | The End-Of-Line separator. |
fieldSeparator | |
escapeCharacter | The escape character. |
disposeStack | The DisposeStack |
/
transport | The Transport Layer |
void CommandMessenger.CommunicationManager.ProcessLine | ( | string | line | ) |
Converts lines on .
Connects to a serial port defined through the current settings.
Stops listening to the serial port.
void CommandMessenger.CommunicationManager.Write< T > | ( | T | value | ) |
Writes a parameter to the serial port.
T | Generic type parameter. |
value | The value. |
void CommandMessenger.CommunicationManager.WriteLine | ( | string | value | ) |
Writes a string to the serial port.
value | The string to write. |
void CommandMessenger.CommunicationManager.WriteLine< T > | ( | T | value | ) |
Writes a parameter to the serial port followed by a NewLine.
T | Generic type parameter. |
value | The value. |
long CommandMessenger.CommunicationManager.LastLineTimeStamp [get, set] |
Gets or sets the time stamp of the last received line.
time stamp of the last received line.